Knit UI
GitHub

Playground

Loading playground…

false
false
Playground
<WeekdaysRow
  size="md"
  withWeekNumbers={false}
  fullWidth={false}
/>

Examples

Default

Default Monday-first header row.

Loading example…

DefaultSourceStorybook

Sunday First

Sunday-first ordering.

Loading example…

Sunday FirstSourceStorybook

With Week Numbers

Leading # heading for the week-number column.

Loading example…

With Week NumbersSourceStorybook

Localized

A non-default locale (Russian).

Loading example…

LocalizedSourceStorybook

Full Names

Full weekday names via a custom dayjs format.

Loading example…

Full NamesSourceStorybook

Full Width

Full-width header stretched to its container (aligns with a full-width Month).

Loading example…

Full WidthSourceStorybook

Styled Slots

Per-slot styles sugar — recolour the weekday labels via the weekday slot.

Loading example…

Styled SlotsSourceStorybook

Sizes

Every size token.

Loading example…

SizesSourceStorybook

Props

PropTypeDefaultDescription
disabled systemboolean | undefined
firstDayOfWeekDayOfWeek | undefined
0 · 1 · 2 · 3 · 4 · 5 · 6
`DatesProvider` (1)First weekday of the row, 0 (Sunday) … 6 (Saturday).
fullWidth systemboolean | undefinedfalseStretch columns to fill the row.
localestring | undefineddayjs locale; falls back to DatesProvider.
shadow system"xs" | "sm" | "md" | "lg" | "xl" | "xxs" | "xxl" | undefined
size systemCalendarSize | undefined
xxs · xs · sm · md · lg · xl · xxl
'md'Width/font of the header columns.
styles systemSlotStyles<WeekdaysRowStyles> | undefinedPer-slot style sugar — props spread onto the matching styled part.
theme systemThemeName | null | undefinedApplies a theme to this element
weekdayFormatDateLabelFormat | undefined'dd'dayjs format for weekday names.
withWeekNumbersboolean | undefinedfalseRender a leading # heading for the week-number column.

Style slots

Every part of WeekdaysRow can be styled through the styles prop. Explicit props on the component always win over slot styles.

SlotUsage
weekdaystyles={{ weekday: { … } }}
weekdaysRowstyles={{ weekdaysRow: { … } }}
Accessibility & DOM props (2)
PropType
keyKey | null | undefined
refRef<TamaguiElement> | undefined

Plus 498 inherited style props from Box — the full Tamagui/React Native style surface, including token shorthands like p, mx, bg and c. See Tokens for the scales they accept, or the full list.