@brickslab./ui-webQuiz
Drag-and-drop rank ordering list with arrow fallback and position badges.
Full list
Top 3 only
Props
| Prop | Type | Défaut | Requis | Description |
|---|---|---|---|---|
value | string[] | — | ✓ | Ordered array of option ids. |
onChange | (v: string[]) => void | — | ✓ | Called with the reordered ids array. |
options | RankOption[] | — | ✓ | Array of { id, label } options. |
maxRank | number | — | — | Limits the number of items shown (top N). |
disabled | boolean | false | — | Disables drag and arrow buttons. |
Override rapide
Tous les paramètres listés dans cette table sont overrideables via les props. Utilisez ce squelette comme point de départ.
<MyComponent
value="..."
onChange="..."
options={[]}
maxRank={0}
disabled={false}
/>valueonChangeoptionsmaxRankdisabled