GitHub

FAQ

Block
Frequently asked questions block with accordion-style Q&A

Basic Usage

Loading...

Installation

pnpm add @corew500/ui

Usage

import { FAQ } from "@corew500/ui/blocks/faq"

<FAQ>Content</FAQ>

API Reference

Props

PropTypeDefaultDescription
items*FAQItem[]—FAQ items to display
titlestring—Section title
descriptionstring—Section description
badgeSectionHeadingBadge—Optional badge above the title
openMultipleenumfalseAllow multiple items to be open simultaneously
defaultValuestring[]—Default open items (uncontrolled)
valuestring[]—Controlled open items
onValueChange(value: string[]) => void—Callback when open items change
headingLevelenum2Heading level for section title
noContainerenumfalseDisable the container wrapper
alignenumcenter—

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

Related

Related Components