FAQ
A grouped FAQ composed on the nx-ui Accordion (Base UI), dressed in the marketing card style: each question is a rounded, bordered card that gains a brand ring when open, optionally grouped under category labels. allowMultiple lets several answers stay open; onOpen fires (analytics-free) when an item expands.
$
Registry itembunx shadcn@latest add @nx-ui/faqGrouped, multiple open
Two labelled categories. allowMultiple (the default) lets more than one answer stay open at once.
Getting started
Compliance
Single-open, ungrouped
Drop the category labels and set allowMultiple=false so opening one answer closes the last.
API reference
Exported parts and their props, extracted from the component source.
| Prop | Type | Default | Description |
|---|---|---|---|
categories* | FaqCategory[] | — | — |
allowMultiple | boolean | true | — |
onOpen | (question: string) => void | — | — |
className | string | — | — |