Components
BaseFaq
Questions and answers in an accordion, as flush rows at the bottom of a card or as bordered panels.
components/ui/BaseFaq.vue
View in the demo
Example
Questions
Yes. Upgrades apply at once and downgrades at the end of the period.
Pass { id, question, answer } items and bind v-model to the id of the open question (null closes them all). variant="divided" is made for the end of a BaseCard: rows without side padding, split by lines, with a +/− icon (the pricing page). variant="outlined" puts each question in its own bordered panel; give it the padding of its container (the help center). The landing pages keep their own LandingFaq.
API
Props
Name | Type | Default | Description |
|---|---|---|---|
itemsrequired | BaseFaqItem[] | — | The questions { id, question, answer }. |
variant | "divided" | "outlined" | "divided" | divided: flush rows split by lines with a +/− icon, for the bottom of a card. outlined: each question in its own bordered panel. |
v-model | string | null | null | The id of the open question, or null with all closed. |
Events
Name | Payload | Description |
|---|---|---|
@update:modelValue | [value: string | null] | — |