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/slider.md
1# Slider23Range input control45**Parts:** `SliderRoot`, `SliderTrack`, `SliderRange`, `SliderThumb`67## SliderRoot89### Props10| Prop | Type | Default |11|------|------|---------|12| `as` | `AsTag \| Component` | `"div"` |13| `asChild` | `boolean` | - |14| `defaultValue` | `number[]` | `[0]` |15| `dir` | `"ltr" \| "rtl"` | - |16| `disabled` | `boolean` | `false` |17| `inverted` | `boolean` | `false` |18| `max` | `number` | `100` |19| `min` | `number` | `0` |20| `minStepsBetweenThumbs` | `number` | `0` |21| `modelValue` | `number[]` | - |22| `name` | `string` | - |23| `orientation` | `"vertical" \| "horizontal"` | `"horizontal"` |24| `step` | `number` | `1` |2526### Emits27| Event | Payload |28|-------|---------|29| `update:modelValue` | `[payload: number[]]` |30| `valueCommit` | `[payload: number[]]` |3132### Slots33| Slot | Type |34|------|------|35| `modelValue` | `number[]` |3637## SliderTrack3839### Props40| Prop | Type | Default |41|------|------|---------|42| `as` | `AsTag \| Component` | `"span"` |43| `asChild` | `boolean` | - |4445## SliderRange4647### Props48| Prop | Type | Default |49|------|------|---------|50| `as` | `AsTag \| Component` | `"span"` |51| `asChild` | `boolean` | - |5253## SliderThumb5455### Props56| Prop | Type | Default |57|------|------|---------|58| `as` | `AsTag \| Component` | `"div"` |59| `asChild` | `boolean` | - |60