Component libraryFAQ section
Components/Marketing

FAQ section

Pro

A searchable, categorized FAQ section composed from the controlled FAQ accordion primitive.

npx shadcn@latest add @tidal-pro/faq-section
Desktop viewport

Installation

Pro source is gated. Configure the @tidal-pro registry using the agent guide. Create an access key from your account after purchasing.

Terminal
npx shadcn@latest add @tidal-pro/faq-section

Import components/ui/tidal.css, components/ui/faq-section.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

title, consumer-owned groups, controlled accordion value, and onValueChange are required. Every group has a stable id, string label, optional description, and questions with globally unique nonempty values, string titles, ReactNode answers, optional plain searchText, Lucide icon, and disabled state. Optional search and category controls are fully controlled and compose native input/button handlers before higher callbacks; preventDefault suppresses the higher callback. Category counts respond to the current query. Optional reset is a persistent native button with attributes/ref and prevented-handler composition, so focus remains mounted after a reset even when no search or category control exists. Optional headingLevel, eyebrow, description, emptyMessage, resultLabel, summaryHint, footer, native section attributes/ref and labelling remain consumer-owned. The default summary instruction reflects the controls actually supplied. Search matches only question titles and supplied searchText, never stringifies answer nodes. The existing @tidal-pro/accordion registry dependency provides Arrow, Home, End, Enter and Space semantics, linked panels, disabled skipping and reduced motion. The section performs no request, storage, account, purchase, support, routing or persistence action.

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.

Building with an agent?Give it the installation guide and component catalog.