ISliderFieldTrackProps

interface
Component Props

Props contract for the track sub-component of <OrigamSliderField> — rail fill range, tick configuration, orientation hints, and the visual surface (color, size, rounded).

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.

typescript

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.

start
number
Start position of the active fill as a fraction of the total range (0–1).
stop
number
Stop position of the active fill as a fraction of the total range (0–1).
disabled
boolean
Applies the disabled visual state to the track.
error
boolean
Forces danger intent on both color channels — driven by the parent slider error flag.
min
number
Boundaries for tick filtering (first tick suppression).
max
number
Boundaries for tick filtering (last tick suppression).
isVertical
boolean
Orientation hint passed by the parent — controls the logical CSS axis.
indexFromEnd
boolean
Inverts the start direction when reverse is on or in vertical mode.
showTicks
TAlways
Tick visibility. Same semantics as the parent slider showTicks.
tickSize
number | string
Tick dot size — px or token unit.
ticks
Array<TTick>
Pre-computed tick descriptors — the parent slider owns the math and passes them down.

Écosystème

Utilisé par

Composants et composables qui étendent ou consomment cette interface.

Usage

Exemples

Extraits de code prêts à coller utilisant cette interface.

Passing trackProps to OrigamSliderField

vue