@brickslab./ui-webQuiz
Likert scale from 1–5 to 1–10 with optional tick bar and extreme labels.
1–5 with labels and ticks
1–7
1–10
Props
| Prop | Type | Défaut | Requis | Description |
|---|---|---|---|---|
value | number | — | — | Currently selected step. |
onChange | (v: number) => void | — | ✓ | Called with the selected number. |
min | number | 1 | — | Scale start. |
max | number | 5 | — | Scale end. |
step | number | 1 | — | Increment between steps. |
minLabel | string | — | — | Label displayed below the first step. |
maxLabel | string | — | — | Label displayed below the last step. |
showTicks | boolean | false | — | Shows a progress tick bar below the steps. |
disabled | boolean | false | — | Disables all interactions. |
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={0}
onChange={0}
min={1}
max={5}
step={1}
minLabel="..."
maxLabel="..."
showTicks={false}
// +1 autres props disponibles
/>valueonChangeminmaxstepminLabelmaxLabelshowTicksdisabled