Loading source
Pulling the file list, source metadata, and syntax-aware rendering for this listing.
Source from repo
Build accessible, unstyled Vue 3 components using Reka UI (formerly Radix Vue) with WAI-ARIA compliance.
Files
Skill
Size
Entrypoint
Format
Open file
Syntax-highlighted preview of this file as included in the skill package.
components/calendar.md
1# Calendar23Date selection grid (alpha)45**Parts:** `CalendarRoot`, `CalendarHeader`, `CalendarHeading`, `CalendarGrid`, `CalendarGridHead`, `CalendarGridBody`, `CalendarGridRow`, `CalendarCell`, `CalendarCellTrigger`, `CalendarHeadCell`, `CalendarNext`, `CalendarPrev`67## CalendarRoot89### Props10| Prop | Type | Default |11|------|------|---------|12| `as` | `AsTag \| Component` | `"div"` |13| `asChild` | `boolean` | - |14| `calendarLabel` | `string` | - |15| `defaultPlaceholder` | `DateValue` | - |16| `defaultValue` | `DateValue` | - |17| `dir` | `"ltr" \| "rtl"` | - |18| `disabled` | `boolean` | `false` |19| `fixedWeeks` | `boolean` | `false` |20| `initialFocus` | `boolean` | `false` |21| `isDateDisabled` | `Matcher` | - |22| `isDateUnavailable` | `Matcher` | - |23| `locale` | `string` | `"en"` |24| `maxValue` | `DateValue` | - |25| `minValue` | `DateValue` | - |26| `modelValue` | `DateValue \| DateValue[]` | - |27| `multiple` | `boolean` | `false` |28| `nextPage` | `((placeholder: DateValue) => DateValue)` | - |29| `numberOfMonths` | `number` | `1` |30| `pagedNavigation` | `boolean` | `false` |31| `placeholder` | `DateValue` | - |32| `preventDeselect` | `boolean` | `false` |33| `prevPage` | `((placeholder: DateValue) => DateValue)` | - |34| `readonly` | `boolean` | `false` |35| `weekdayFormat` | `"narrow" \| "short" \| "long"` | `"narrow"` |36| `weekStartsOn` | `0 \| 1 \| 2 \| 3 \| 4 \| 5 \| 6` | `0` |3738### Emits39| Event | Payload |40|-------|---------|41| `update:modelValue` | `[date: DateValue]` |42| `update:placeholder` | `[date: DateValue]` |4344### Slots45| Slot | Type |46|------|------|47| `date` | `DateValue` |48| `grid` | `Grid<DateValue>[]` |49| `weekDays` | `string[]` |50| `weekStartsOn` | `0 \| 1 \| 2 \| 3 \| 4 \| 5 \| 6` |51| `locale` | `string` |52| `fixedWeeks` | `boolean` |5354## CalendarHeader5556### Props57| Prop | Type | Default |58|------|------|---------|59| `as` | `AsTag \| Component` | `"div"` |60| `asChild` | `boolean` | - |6162## CalendarHeading6364### Props65| Prop | Type | Default |66|------|------|---------|67| `as` | `AsTag \| Component` | `"div"` |68| `asChild` | `boolean` | - |6970### Slots71| Slot | Type |72|------|------|73| `headingValue` | `string` |7475## CalendarGrid7677### Props78| Prop | Type | Default |79|------|------|---------|80| `as` | `AsTag \| Component` | `"table"` |81| `asChild` | `boolean` | - |8283## CalendarGridHead8485### Props86| Prop | Type | Default |87|------|------|---------|88| `as` | `AsTag \| Component` | `"thead"` |89| `asChild` | `boolean` | - |9091## CalendarGridBody9293### Props94| Prop | Type | Default |95|------|------|---------|96| `as` | `AsTag \| Component` | `"tbody"` |97| `asChild` | `boolean` | - |9899## CalendarGridRow100101### Props102| Prop | Type | Default |103|------|------|---------|104| `as` | `AsTag \| Component` | `"tr"` |105| `asChild` | `boolean` | - |106107## CalendarCell108109### Props110| Prop | Type | Default |111|------|------|---------|112| `as` | `AsTag \| Component` | `"td"` |113| `asChild` | `boolean` | - |114| `date`* | `DateValue` | - |115116## CalendarCellTrigger117118### Props119| Prop | Type | Default |120|------|------|---------|121| `as` | `AsTag \| Component` | `"div"` |122| `asChild` | `boolean` | - |123| `day`* | `DateValue` | - |124| `month`* | `DateValue` | - |125126### Slots127| Slot | Type |128|------|------|129| `dayValue` | `string` |130131## CalendarHeadCell132133### Props134| Prop | Type | Default |135|------|------|---------|136| `as` | `AsTag \| Component` | `"th"` |137| `asChild` | `boolean` | - |138139## CalendarNext140141### Props142| Prop | Type | Default |143|------|------|---------|144| `as` | `AsTag \| Component` | `"button"` |145| `asChild` | `boolean` | - |146| `nextPage` | `((placeholder: DateValue) => DateValue)` | - |147| `step` | `"month" \| "year"` | `"month"` |148149## CalendarPrev150151### Props152| Prop | Type | Default |153|------|------|---------|154| `as` | `AsTag \| Component` | `"button"` |155| `asChild` | `boolean` | - |156| `prevPage` | `((placeholder: DateValue) => DateValue)` | - |157| `step` | `"month" \| "year"` | `"month"` |158