Skip to content

Week Strip

Free

One row of days with previous and next buttons, for agendas and bookings. It shows a week or a few days, with dots for events.

  • React Aria
  • React 19
  • Tailwind CSS 4

Added Nov 9, 2026 · MIT + Commons Clause

Playground

Loading the preview

Props

Put the header and the grid in the strip. The grid returns one day for each date, with dots for the classes of that day.

class-week.tsx

WeekStrip

PropTypeDefaultDescription
valueCalendarValueType<T | null, M>—The current value (controlled).
defaultValueCalendarValueType<T | null, M>—The default value (uncontrolled).
aria-labelstring—Defines a string value that labels the current element.
aria-labelledbystring—Identifies the element (or elements) that labels the current element.
aria-describedbystring—Identifies the element (or elements) that describes the object.
aria-detailsstring—Identifies the element (or elements) that provide a detailed, extended description for the object.
idstring—The element's unique identifier. See MDN.
dirstring—
langstring—
hiddenboolean—
inertboolean—
translate"no""yes"—
suppressHydrationWarningboolean—A React-only flag that suppresses the warning React normally logs when an element's server-rendered content doesn't match the client render during hydration. See React docs.
onClickMouseEventHandler<HTMLDivElement>—
onClickCaptureMouseEventHandler<HTMLDivElement>—
onAuxClickMouseEventHandler<HTMLDivElement>—
onAuxClickCaptureMouseEventHandler<HTMLDivElement>—
onContextMenuMouseEventHandler<HTMLDivElement>—
onContextMenuCaptureMouseEventHandler<HTMLDivElement>—
onDoubleClickMouseEventHandler<HTMLDivElement>—
onDoubleClickCaptureMouseEventHandler<HTMLDivElement>—
onMouseDownMouseEventHandler<HTMLDivElement>—
onMouseDownCaptureMouseEventHandler<HTMLDivElement>—
onMouseEnterMouseEventHandler<HTMLDivElement>—
onMouseLeaveMouseEventHandler<HTMLDivElement>—
onMouseMoveMouseEventHandler<HTMLDivElement>—
onMouseMoveCaptureMouseEventHandler<HTMLDivElement>—
onMouseOutMouseEventHandler<HTMLDivElement>—
onMouseOutCaptureMouseEventHandler<HTMLDivElement>—
onMouseOverMouseEventHandler<HTMLDivElement>—
onMouseOverCaptureMouseEventHandler<HTMLDivElement>—
onMouseUpMouseEventHandler<HTMLDivElement>—
onMouseUpCaptureMouseEventHandler<HTMLDivElement>—
onTouchCancelTouchEventHandler<HTMLDivElement>—
onTouchCancelCaptureTouchEventHandler<HTMLDivElement>—
onTouchEndTouchEventHandler<HTMLDivElement>—
onTouchEndCaptureTouchEventHandler<HTMLDivElement>—
onTouchMoveTouchEventHandler<HTMLDivElement>—
onTouchMoveCaptureTouchEventHandler<HTMLDivElement>—
onTouchStartTouchEventHandler<HTMLDivElement>—
onTouchStartCaptureTouchEventHandler<HTMLDivElement>—
onPointerDownPointerEventHandler<HTMLDivElement>—
onPointerDownCapturePointerEventHandler<HTMLDivElement>—
onPointerMovePointerEventHandler<HTMLDivElement>—
onPointerMoveCapturePointerEventHandler<HTMLDivElement>—
onPointerUpPointerEventHandler<HTMLDivElement>—
onPointerUpCapturePointerEventHandler<HTMLDivElement>—
onPointerCancelPointerEventHandler<HTMLDivElement>—
onPointerCancelCapturePointerEventHandler<HTMLDivElement>—
onPointerEnterPointerEventHandler<HTMLDivElement>—
onPointerLeavePointerEventHandler<HTMLDivElement>—
onPointerOverPointerEventHandler<HTMLDivElement>—
onPointerOverCapturePointerEventHandler<HTMLDivElement>—
onPointerOutPointerEventHandler<HTMLDivElement>—
onPointerOutCapturePointerEventHandler<HTMLDivElement>—
onGotPointerCapturePointerEventHandler<HTMLDivElement>—
onGotPointerCaptureCapturePointerEventHandler<HTMLDivElement>—
onLostPointerCapturePointerEventHandler<HTMLDivElement>—
onLostPointerCaptureCapturePointerEventHandler<HTMLDivElement>—
onScrollUIEventHandler<HTMLDivElement>—
onScrollCaptureUIEventHandler<HTMLDivElement>—
onWheelWheelEventHandler<HTMLDivElement>—
onWheelCaptureWheelEventHandler<HTMLDivElement>—
onAnimationStartAnimationEventHandler<HTMLDivElement>—
onAnimationStartCaptureAnimationEventHandler<HTMLDivElement>—
onAnimationEndAnimationEventHandler<HTMLDivElement>—
onAnimationEndCaptureAnimationEventHandler<HTMLDivElement>—
onAnimationIterationAnimationEventHandler<HTMLDivElement>—
onAnimationIterationCaptureAnimationEventHandler<HTMLDivElement>—
onTransitionCancelTransitionEventHandler<HTMLDivElement>—
onTransitionCancelCaptureTransitionEventHandler<HTMLDivElement>—
onTransitionEndTransitionEventHandler<HTMLDivElement>—
onTransitionEndCaptureTransitionEventHandler<HTMLDivElement>—
onTransitionRunTransitionEventHandler<HTMLDivElement>—
onTransitionRunCaptureTransitionEventHandler<HTMLDivElement>—
onTransitionStartTransitionEventHandler<HTMLDivElement>—
onTransitionStartCaptureTransitionEventHandler<HTMLDivElement>—
styleStyleOrFunction<CalendarRenderProps<M>>—The inline style for the element. A function may be provided to compute the style based on component state.
children—The children of the component. A function may be provided to alter the children based on component state.
slotstring | null—A slot name for the component. Slots allow the component to receive props from a parent component. An explicit null value indicates that the local props completely override all props received from a parent.
render—Overrides the default DOM element with a custom render function. This allows rendering existing components with built-in styles and behaviors such as router links, animation libraries, and pre-styled components. Requirements: - You must render the expected element type (e.g. if <button> is expected, you cannot render an <a>). - Only a single root DOM element can be rendered (no fragments). - You must pass through props and ref to the underlying DOM element, merging with your own prop as appropriate.
minValueDateValue | null—The minimum allowed date that a user may select.
maxValueDateValue | null—The maximum allowed date that a user may select.
autoFocusbooleanfalseWhether to automatically focus the calendar when it mounts.
focusedValueDateValue | null—Controls the currently focused date within the calendar.
defaultFocusedValueDateValue | null—The date that is focused when the calendar first mounts (uncontrolled).
onFocusChange—Handler that is called when the focused date changes.
pageBehavior"single""visible"visibleControls the behavior of paging. Pagination either works by advancing the visible page by visibleDuration (default) or one unit of visibleDuration.
firstDayOfWeek"fri""mon""sat""sun""thu""tue""wed"—The day that starts the week.
selectionAlignment"center""end""start"'center'Determines the alignment of the visible months on initial render based on the current selection or current date if there is no selection.
selectionModeM'single'Whether single or multiple selection is enabled.
isDateUnavailable—Callback that is called for each date of the calendar. If it returns true, then the date is unavailable.
visibleDurationDateDurationONE_WEEKThe amount of days that will be displayed at once. This affects how pagination works.
createCalendar—A function to create a new Calendar object for a given calendar identifier. If not provided, the createCalendar function from @internationalized/date will be used.
disabledboolean—Turns off the control: no focus, no edits, and the disabled look.
readOnlyboolean—The user can focus and read the value, but cannot change it.
invalidboolean—Shows the invalid look and sets aria-invalid.
onValueChange—Runs on each change, with the new value and the Base UI change details.
classNamestring—
size"default""lg""sm"—The cell size: sm 28, default 32, lg 36. On a touch screen every size grows to 44.
weeksInMonthnumber | "auto"—The rows of a month view. Default 6, so the height never changes when the user pages. "auto": the rows of each month (4 to 6, React Aria). Week and day views ignore it.
labelsPartial<{ weekNumber: string; }>—The words (CALENDAR_LABELS), to translate them. Keep the object stable.
weekdayStyle"long""narrow""short""short"The weekday name over each day: short (default, "Fri"), narrow ("F"), long.
stepDateDuration—How far a page moves: Previous and Next, and the page keys of WeekStripGrid (Page Up and Page Down, Up and Down in a day view, and the arrow past the first or last day). Default: the visible days (React Aria). A work week (visibleDuration={{ days: 5 }}) sets { weeks: 1 }, so Next and the keys go from Mon – Fri to the next Mon – Fri, not to Sat – Wed.

WeekStripHeader

<div>
PropTypeDefaultDescription
heading"month""range""range"range (default): Previous, the visible days ("19 – 25 Oct 2026", CalendarHeading with a short month), Next. month: the month at the start ("October 2026", or "Oct – Nov 2026" when the days cross a month) and both buttons at the end.
...props<div> attributes—Every other attribute goes to the <div>, with a ref.

WeekStripGrid

PropTypeDefaultDescription
dirstring—
langstring—
hiddenboolean—
inertboolean—
translate"no""yes"—
suppressHydrationWarningboolean—A React-only flag that suppresses the warning React normally logs when an element's server-rendered content doesn't match the client render during hydration. See React docs.
onClickMouseEventHandler<HTMLTableElement>—
onClickCaptureMouseEventHandler<HTMLTableElement>—
onAuxClickMouseEventHandler<HTMLTableElement>—
onAuxClickCaptureMouseEventHandler<HTMLTableElement>—
onContextMenuMouseEventHandler<HTMLTableElement>—
onContextMenuCaptureMouseEventHandler<HTMLTableElement>—
onDoubleClickMouseEventHandler<HTMLTableElement>—
onDoubleClickCaptureMouseEventHandler<HTMLTableElement>—
onMouseDownMouseEventHandler<HTMLTableElement>—
onMouseDownCaptureMouseEventHandler<HTMLTableElement>—
onMouseEnterMouseEventHandler<HTMLTableElement>—
onMouseLeaveMouseEventHandler<HTMLTableElement>—
onMouseMoveMouseEventHandler<HTMLTableElement>—
onMouseMoveCaptureMouseEventHandler<HTMLTableElement>—
onMouseOutMouseEventHandler<HTMLTableElement>—
onMouseOutCaptureMouseEventHandler<HTMLTableElement>—
onMouseOverMouseEventHandler<HTMLTableElement>—
onMouseOverCaptureMouseEventHandler<HTMLTableElement>—
onMouseUpMouseEventHandler<HTMLTableElement>—
onMouseUpCaptureMouseEventHandler<HTMLTableElement>—
onTouchCancelTouchEventHandler<HTMLTableElement>—
onTouchCancelCaptureTouchEventHandler<HTMLTableElement>—
onTouchEndTouchEventHandler<HTMLTableElement>—
onTouchEndCaptureTouchEventHandler<HTMLTableElement>—
onTouchMoveTouchEventHandler<HTMLTableElement>—
onTouchMoveCaptureTouchEventHandler<HTMLTableElement>—
onTouchStartTouchEventHandler<HTMLTableElement>—
onTouchStartCaptureTouchEventHandler<HTMLTableElement>—
onPointerDownPointerEventHandler<HTMLTableElement>—
onPointerDownCapturePointerEventHandler<HTMLTableElement>—
onPointerMovePointerEventHandler<HTMLTableElement>—
onPointerMoveCapturePointerEventHandler<HTMLTableElement>—
onPointerUpPointerEventHandler<HTMLTableElement>—
onPointerUpCapturePointerEventHandler<HTMLTableElement>—
onPointerCancelPointerEventHandler<HTMLTableElement>—
onPointerCancelCapturePointerEventHandler<HTMLTableElement>—
onPointerEnterPointerEventHandler<HTMLTableElement>—
onPointerLeavePointerEventHandler<HTMLTableElement>—
onPointerOverPointerEventHandler<HTMLTableElement>—
onPointerOverCapturePointerEventHandler<HTMLTableElement>—
onPointerOutPointerEventHandler<HTMLTableElement>—
onPointerOutCapturePointerEventHandler<HTMLTableElement>—
onGotPointerCapturePointerEventHandler<HTMLTableElement>—
onGotPointerCaptureCapturePointerEventHandler<HTMLTableElement>—
onLostPointerCapturePointerEventHandler<HTMLTableElement>—
onLostPointerCaptureCapturePointerEventHandler<HTMLTableElement>—
onScrollUIEventHandler<HTMLTableElement>—
onScrollCaptureUIEventHandler<HTMLTableElement>—
onWheelWheelEventHandler<HTMLTableElement>—
onWheelCaptureWheelEventHandler<HTMLTableElement>—
onAnimationStartAnimationEventHandler<HTMLTableElement>—
onAnimationStartCaptureAnimationEventHandler<HTMLTableElement>—
onAnimationEndAnimationEventHandler<HTMLTableElement>—
onAnimationEndCaptureAnimationEventHandler<HTMLTableElement>—
onAnimationIterationAnimationEventHandler<HTMLTableElement>—
onAnimationIterationCaptureAnimationEventHandler<HTMLTableElement>—
onTransitionCancelTransitionEventHandler<HTMLTableElement>—
onTransitionCancelCaptureTransitionEventHandler<HTMLTableElement>—
onTransitionEndTransitionEventHandler<HTMLTableElement>—
onTransitionEndCaptureTransitionEventHandler<HTMLTableElement>—
onTransitionRunTransitionEventHandler<HTMLTableElement>—
onTransitionRunCaptureTransitionEventHandler<HTMLTableElement>—
onTransitionStartTransitionEventHandler<HTMLTableElement>—
onTransitionStartCaptureTransitionEventHandler<HTMLTableElement>—
styleCSSProperties—The inline style for the element.
renderDOMRenderFunction<"table", undefined>—Overrides the default DOM element with a custom render function. This allows rendering existing components with built-in styles and behaviors such as router links, animation libraries, and pre-styled components. Requirements: - You must render the expected element type (e.g. if <button> is expected, you cannot render an <a>). - Only a single root DOM element can be rendered (no fragments). - You must pass through props and ref to the underlying DOM element, merging with your own prop as appropriate.
offsetDateDuration—An offset from the beginning of the visible date range that this CalendarGrid should display. Useful when displaying more than one month at a time.
classNamestring—
children—A function from a date to a WeekStripDay: an indicator, a labelSuffix. Default: <WeekStripDay date={date} />.

WeekStripDay

PropTypeDefaultDescription
dirstring—
langstring—
hiddenboolean—
inertboolean—
translate"no""yes"—
suppressHydrationWarningboolean—A React-only flag that suppresses the warning React normally logs when an element's server-rendered content doesn't match the client render during hydration. See React docs.
onClickMouseEventHandler<HTMLTableCellElement>—
onClickCaptureMouseEventHandler<HTMLTableCellElement>—
onAuxClickMouseEventHandler<HTMLTableCellElement>—
onAuxClickCaptureMouseEventHandler<HTMLTableCellElement>—
onContextMenuMouseEventHandler<HTMLTableCellElement>—
onContextMenuCaptureMouseEventHandler<HTMLTableCellElement>—
onDoubleClickMouseEventHandler<HTMLTableCellElement>—
onDoubleClickCaptureMouseEventHandler<HTMLTableCellElement>—
onMouseDownMouseEventHandler<HTMLTableCellElement>—
onMouseDownCaptureMouseEventHandler<HTMLTableCellElement>—
onMouseEnterMouseEventHandler<HTMLTableCellElement>—
onMouseLeaveMouseEventHandler<HTMLTableCellElement>—
onMouseMoveMouseEventHandler<HTMLTableCellElement>—
onMouseMoveCaptureMouseEventHandler<HTMLTableCellElement>—
onMouseOutMouseEventHandler<HTMLTableCellElement>—
onMouseOutCaptureMouseEventHandler<HTMLTableCellElement>—
onMouseOverMouseEventHandler<HTMLTableCellElement>—
onMouseOverCaptureMouseEventHandler<HTMLTableCellElement>—
onMouseUpMouseEventHandler<HTMLTableCellElement>—
onMouseUpCaptureMouseEventHandler<HTMLTableCellElement>—
onTouchCancelTouchEventHandler<HTMLTableCellElement>—
onTouchCancelCaptureTouchEventHandler<HTMLTableCellElement>—
onTouchEndTouchEventHandler<HTMLTableCellElement>—
onTouchEndCaptureTouchEventHandler<HTMLTableCellElement>—
onTouchMoveTouchEventHandler<HTMLTableCellElement>—
onTouchMoveCaptureTouchEventHandler<HTMLTableCellElement>—
onTouchStartTouchEventHandler<HTMLTableCellElement>—
onTouchStartCaptureTouchEventHandler<HTMLTableCellElement>—
onPointerDown—
onPointerDownCapture—
onPointerMove—
onPointerMoveCapture—
onPointerUp—
onPointerUpCapture—
onPointerCancel—
onPointerCancelCapture—
onPointerEnter—
onPointerLeave—
onPointerOver—
onPointerOverCapture—
onPointerOut—
onPointerOutCapture—
onGotPointerCapture—
onGotPointerCaptureCapture—
onLostPointerCapture—
onLostPointerCaptureCapture—
onScrollUIEventHandler<HTMLTableCellElement>—
onScrollCaptureUIEventHandler<HTMLTableCellElement>—
onWheelWheelEventHandler<HTMLTableCellElement>—
onWheelCaptureWheelEventHandler<HTMLTableCellElement>—
onAnimationStart—
onAnimationStartCapture—
onAnimationEnd—
onAnimationEndCapture—
onAnimationIteration—
onAnimationIterationCapture—
onTransitionCancel—
onTransitionCancelCapture—
onTransitionEnd—
onTransitionEndCapture—
onTransitionRun—
onTransitionRunCapture—
onTransitionStart—
onTransitionStartCapture—
onHoverStart—Handler that is called when a hover interaction starts.
onHoverEnd—Handler that is called when a hover interaction ends.
onHoverChange—Handler that is called when the hover state changes.
styleStyleOrFunction<CalendarCellRenderProps>—The inline style for the element. A function may be provided to compute the style based on component state.
render—Overrides the default DOM element with a custom render function. This allows rendering existing components with built-in styles and behaviors such as router links, animation libraries, and pre-styled components. Requirements: - You must render the expected element type (e.g. if <button> is expected, you cannot render an <a>). - Only a single root DOM element can be rendered (no fragments). - You must pass through props and ref to the underlying DOM element, merging with your own prop as appropriate.
dateRequiredCalendarDate—The date to render in the cell.
classNamestring—
layout"inline""stacked"—inline (default): the day number in a square cell. stacked: a tall cell with two lines from the top (Week Strip: the weekday over the day number). Mark the struck part of a stacked cell yourself (group-data-unavailable/calendar-cell:line-through).
labelSuffixstring—Words that the screen reader name of the cell adds after the date: "4 free times", "fully booked", "€109". Use it for what an indicator, a price, or a line-through shows. React Aria builds the name itself and drops an aria-label prop.
childrenReactNode—Content after the weekday and the day number: a CalendarCellIndicator.
  • Use it above a list of times or events for the picked day.
  • Use visibleDuration={{ days: 5 }} and step={{ weeks: 1 }} for a work week.
  • Use CalendarCellIndicator in a day to show events.
Left ArroworRight ArrowMove one day back or on.
HomeorEndGo to the first or the last day of the week.
Page UporPage DownGo one week back or on.
EnterPicks the focused day.
Selected day
panel · the pill slides to the picked day

Built with

Installs with Week Strip

Components
Calendar
  1. AddedWeek Strip, with Calendar.
Open the release