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/date-range-field.md
1# Date Range Field23Date range input (alpha)45**Parts:** `DateRangeFieldRoot`, `DateRangeFieldInput`67## DateRangeFieldRoot89### Props10| Prop | Type | Default |11|------|------|---------|12| `as` | `AsTag \| Component` | `"div"` |13| `asChild` | `boolean` | - |14| `defaultPlaceholder` | `DateValue` | - |15| `defaultValue` | `DateRange` | - |16| `dir` | `"ltr" \| "rtl"` | - |17| `disabled` | `boolean` | `false` |18| `granularity` | `"day" \| "hour" \| "minute" \| "second"` | - |19| `hideTimeZone` | `boolean` | - |20| `hourCycle` | `12 \| 24` | - |21| `id` | `string` | - |22| `isDateUnavailable` | `Matcher` | - |23| `locale` | `string` | `"en"` |24| `maxValue` | `DateValue` | - |25| `minValue` | `DateValue` | - |26| `modelValue` | `DateRange` | - |27| `name` | `string` | - |28| `placeholder` | `DateValue` | - |29| `readonly` | `boolean` | `false` |30| `required` | `boolean` | - |3132### Emits33| Event | Payload |34|-------|---------|35| `update:modelValue` | `[DateRange]` |36| `update:placeholder` | `[date: DateValue]` |3738### Slots39| Slot | Type |40|------|------|41| `modelValue` | `DateRange` |42| `segments` | `{ start: { part: SegmentPart; value: string; }[...` |4344## DateRangeFieldInput4546### Props47| Prop | Type | Default |48|------|------|---------|49| `as` | `AsTag \| Component` | `"div"` |50| `asChild` | `boolean` | - |51| `part`* | `"day" \| "month" \| "year" \| "hour" \| "minute" \| ...` | - |52| `type`* | `"start" \| "end"` | - |53