Component libraryFAQ accordion
FAQ accordion
ProExpandable questions and answers with keyboard navigation.
npx shadcn@latest add @tidal-pro/accordionInstallation
Pro source is gated. Configure the @tidal-pro registry using the agent guide. Create an access key from your account after purchasing.
Terminal
Import components/ui/tidal.css, components/ui/accordion.css, then add the component inside a tidal-scope wrapper. Its scoped design tokens keep it independent of your existing CSS.
Usage
Complete example source · Dependency and asset manifest
Loading the complete example…
API & behavior
Controlled label, items ({value,title,content:ReactNode,Lucide icon?,disabled?}[]), value, onValueChange. Single mode uses string and optional collapsible (default true); multiple mode uses string[]. Optional disabled, className, headingLevel2–6(default3). Unique nonempty item values. Radix ArrowUp/Down/Home/End, Enter/Space disclosure, linked regions, disabled skipping. Closed panels unmount their children after the exit animation. Lift persistent form state above the accordion. A shared marker follows the open item in single mode; multiple mode marks each open row. Consumer owns content.
Style with the --t-* CSS variables. Set data-theme="dark" on your tidal-scope wrapper for a dark surface. Motion respects the system’s reduced-motion preference.