TidalUI

FAQ section preview

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

pro · Marketing · section

When to use

Alternatives

Configure components.json and the @tidal-pro namespace before installing Pro components.

Installation

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

Import components/ui/tidal.css, components/ui/faq-section.css. Wrap installed components in tidal-scope.

Preview

FAQ section component preview

Open interactive preview

Minimal example

import"./components/ui/tidal.css";
import"./components/ui/faq-section.css";
import{TidalFaqSection}from"./components/ui/faq-section";
export default()=><div className="tidal-scope"><TidalFaqSection groups={[{id:"example",label:"Demo",questions:[{answer:"value",value:"value",title:"Demo"}]}]} onValueChange={() => {}} title={"Demo"} value={"value"}/></div>;

API and props

TidalFaqSection.groups (required)
ReadonlyArray<TidalFaqGroup>

Required groups value accepted by this exported component.

TidalFaqSection.onValueChange (required)
(value: string) => void

Callback invoked when the value change interaction is proposed.

TidalFaqSection.title (required)
ReactNode

Required title value accepted by this exported component.

TidalFaqSection.value (required)
string

Required value value accepted by this exported component.

TidalFaqSection.category
TidalFaqCategoryControl | undefined

Optional category value accepted by this exported component.

TidalFaqSection.description
ReactNode

Optional description value accepted by this exported component.

TidalFaqSection.emptyMessage
ReactNode

Optional empty message value accepted by this exported component.

TidalFaqSection.eyebrow
ReactNode

Optional eyebrow value accepted by this exported component.

TidalFaqSection.footer
ReactNode

Optional footer value accepted by this exported component.

TidalFaqSection.headingLevel
"h2" | "h3" | undefined

Optional heading level value accepted by this exported component.

TidalFaqSection.reset
TidalFaqResetControl | undefined

Optional reset value accepted by this exported component.

TidalFaqSection.resultLabel
((count: number) => ReactNode) | undefined

Optional result label value accepted by this exported component.

TidalFaqSection.search
TidalFaqSearchControl | undefined

Optional search value accepted by this exported component.

TidalFaqSection.summaryHint
ReactNode

Optional summary hint value accepted by this exported component.

Complete usage

Full example, stylesheet imports, API and accessibility documentation

Gotchas