Components
BaseChecklistCard
Progress through a checklist with the next pending step and a button to resolve it.
components/ui/BaseChecklistCard.vue
View in the demo
Example
Security: good3 of 5 done
Turn on two-step verification.
For profile completion, account security, onboarding or a setup checklist. The module decides which items are done and which one comes next; the card shows the count, a segmented bar, the next item as hint and a button that goes to actionTo or emits action. Leave actionText out once everything is done. compact puts the hint and a small button under the bar (the profile page); the default layout puts a larger button beside it (the security settings).
API
Props
Name | Type | Default | Description |
|---|---|---|---|
titlerequired | string | — | What the checklist measures, such as "Your profile is 60% complete" or "Security: good". |
stepsrequired | number | — | How many items the checklist has. |
valuerequired | number | — | How many are done. |
progress-text | string | — | The count next to the title, such as "3 of 5 done". |
color | string | "primary" | The colour of the done segments, such as success, or warning while the result is weak. |
hint | string | — | The next pending item, such as "Add a recovery phone". |
action-text | string | — | The text of the button that resolves the next item; leave it out when everything is done. |
action-to | string | J | W | — | Where the button goes; without it the button emits action. |
label | string | — | The accessible name of the bar. Defaults to the title. |
compact | boolean | false | A smaller card with the hint and a small button under the bar, for a profile or a dashboard column. |
Events
Name | Payload | Description |
|---|---|---|
@action | — | The button was pressed and has no actionTo. |