@brickslab./ui-webQuiz
Previous/Next navigation bar with optional summary panel and jump-to support.
Basic
With summary panel
Disabled states
Props
| Prop | Type | Défaut | Requis | Description |
|---|---|---|---|---|
canNext | boolean | true | — | Enables the Next button. |
canPrev | boolean | true | — | Enables the Previous button. |
onNext | () => void | — | ✓ | Called when Next is clicked. |
onPrev | () => void | — | ✓ | Called when Previous is clicked. |
onJump | (id: string) => void | — | — | Called with the selected question/section id from the summary panel. |
showSummary | boolean | false | — | Shows the Summary button that opens a jump-to panel. |
summaryItems | QuizNavSummaryItem[] | — | — | Items shown in the summary panel: { id, label, completed? }. |
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
canNext={true}
canPrev={true}
onNext={...}
onPrev={...}
onJump="..."
showSummary={false}
summaryItems={[]}
/>canNextcanPrevonNextonPrevonJumpshowSummarysummaryItems