FAQ
BlockBasic Usage
Loading...
Installation
pnpm add @corew500/uiUsage
import { FAQ } from "@corew500/ui/blocks/faq"
<FAQ>Content</FAQ>API Reference
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| items* | FAQItem[] | — | FAQ items to display |
| title | string | — | Section title |
| description | string | — | Section description |
| badge | SectionHeadingBadge | — | Optional badge above the title |
| openMultiple | enum | false | Allow multiple items to be open simultaneously |
| defaultValue | string[] | — | Default open items (uncontrolled) |
| value | string[] | — | Controlled open items |
| onValueChange | (value: string[]) => void | — | Callback when open items change |
| headingLevel | enum | 2 | Heading level for section title |
| noContainer | enum | false | Disable the container wrapper |
| align | enum | center | — |
Localization
Translatable Content
- - All text content is provided via props
- Pass pre-translated strings for i18n support
Additional
- Question and answer fields support React nodes for rich content