ISliderFieldProps
interface
Component Props
Full props contract for <OrigamSliderField> — a range input with three visual variants (field, timer, audio), optional waveform peaks, range mode, tick marks, hover tooltip, and the full design surface.
TypeScript
Définition
La définition TypeScript de l'interface telle que trouvée dans le code source d'origam. Cliquez sur l'icône de copie pour copier l'extrait.
Héritage
Hérite de
Interfaces parentes dont celle-ci hérite. Leurs propriétés sont disponibles pour tout consommateur de cette interface.
API
Propriétés
Chaque propriété déclarée par cette interface, avec son type, son caractère optionnel et sa valeur par défaut.
- disabledboolean
- Disables the slider — prevents interaction and applies a disabled visual state.
- requiredboolean
- Marks the field as required (validation semantic).
- labelstring
- Field label rendered by the wrapping OrigamInput chrome (variant="field" only).
- errorboolean
- Forces the danger intent on both color channels — drives the error visual state.
- readonlyboolean
- Makes the slider non-interactive while keeping it visually enabled.
- maxnumber | string
- Maximum value of the range. Forwarded to the underlying <input type="range">.
- minnumber | string
- Minimum value of the range.
- stepnumber | string
- Step increment for snapping.
- trackPropsISliderFieldTrackProps
- Visual props forwarded to the track sub-component (color, size, rounded, ticks).
- reverseboolean
- Reverses the start direction of the fill.
- modelValuenumber | string | Array<number> | Array<string>
- Bound value (v-model). Array for range mode.
- rangeboolean
- Enables two-thumb range mode — modelValue must be an array of two values.
- showTicksTAlways
- Controls tick mark visibility.
- ticksArray<number> | Record<string, string>
- Custom tick positions and optional labels.
- tickSizeTSize | number
- Size of tick dot markers.
- insetboolean
- Compact inset style — the draggable thumb sits inside the track. Defaults to false.
- variantTSliderFieldVariant
- Visual variant: "field" (default, with input chrome), "timer" (bare rail, hidden thumb), "audio" (timer + waveform peaks).
- bufferednumber
- Secondary fill from min to buffered (e.g. loaded video buffer). Layered behind active fill at reduced opacity.
- showThumbOnHoverOnlyboolean
- Hides the thumb at rest and reveals it on hover/focus/drag. Forced on for timer and audio variants.
- showHoverTooltipboolean
- Renders a floating tooltip above the rail showing the value under the cursor.
- formatHoverTooltip(value: number) => string
- Formatter for the hover tooltip text. Receives the clamped cursor value.
- peaksReadonlyArray<number>
- Waveform peaks in [0, 1]. Used with variant="audio" to paint vertical bars behind the track.
Écosystème
Utilisé par
Composants et composables qui étendent ou consomment cette interface.
Usage
Exemples
Extraits de code prêts à coller utilisant cette interface.
Audio waveform scrubber