@brickslab./ui-webQuiz
Multi-select question with checkbox or tag variant and configurable min/max selection.
Checkbox variant
Tag variant
Max 2 selections
Props
| Prop | Type | Défaut | Requis | Description |
|---|---|---|---|---|
value | string[] | — | ✓ | Array of selected option ids. |
onChange | (v: string[]) => void | — | ✓ | Called with updated selection array. |
options | MultiChoiceOption[] | — | ✓ | Array of { id, label, disabled? }. |
variant | "checkbox" | "tag" | "checkbox" | — | Checkbox rows or tag pill layout. |
maxSelected | number | — | — | Maximum number of selectable options. |
minSelected | number | — | — | Minimum required selections (for validation). |
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="..."
onChange="..."
options={[]}
variant="checkbox"
maxSelected={0}
minSelected={0}
disabled={false}
/>valueonChangeoptionsvariantmaxSelectedminSelecteddisabled