Uai

marketingfaq-section.tsx

Color theme

block · 70/108

FAQ Section

Searchable questions with accessible disclosure answers.

Install

Install manuallyView source on GitHub

Composes

  • faq-section.tsx10
  • search-field.tsx5

Accessibility3 checks

  • Each question is an h3 button with aria-expanded and aria-controls pointing at its answer.
  • Search filters by question and answer text; the Search Field status announces when nothing matches.
  • Escape clears the search, and filtered-out questions are hidden from assistive technology.
canvasvariant="list"marketing
Marketing sites

Questions before you switch

Search the answers, or write to support@ferrow.example for anything we missed.

  • Yes. Forward calls and voicemail to your Ferrow number, or port the number over in about five business days.

FAQ section variant

Code example

usage.tsx
import {  FaqSection,  FaqSectionAnswer,  FaqSectionDescription,  FaqSectionEmpty,  FaqSectionHeader,  FaqSectionItem,  FaqSectionList,  FaqSectionQuestion,  FaqSectionSearch,  FaqSectionTitle,  type FaqSectionVariant,} from "@/components/uai/faq-section";import {  SearchFieldClear,  SearchFieldControl,  SearchFieldInput,  SearchFieldLabel,  SearchFieldMessage,} from "@/components/ui/uai/search-field";const questions = [  {    question: "Can we keep our existing phone number?",    answer:      "Yes. Forward calls and voicemail to your Ferrow number, or port the number over in about five business days.",  },  {    question: "How does billing work when crews change size?",    answer:      "You pay for active seats. Adding someone mid-cycle is prorated, and removed seats are credited on the next invoice.",  },  {    question: "Do customers need to install an app?",    answer:      "No. Arrival windows and replies work over text message and email, so customers use what they already have.",  },  {    question: "Where is our data stored?",    answer:      "Customer records are stored in the region you choose at signup, encrypted at rest, and backed up every hour.",  },  {    question: "Can we import jobs from a spreadsheet?",    answer:      "Upload a CSV with addresses and dates. Ferrow matches columns automatically and shows a preview before importing.",  },];export function FaqSectionPreview({ variant = "list" }: { variant?: FaqSectionVariant }) {  return (    <FaqSection variant={variant}>      <FaqSectionHeader>        <FaqSectionTitle>Questions before you switch</FaqSectionTitle>        <FaqSectionDescription>          Search the answers, or write to support@ferrow.example for anything we missed.        </FaqSectionDescription>      </FaqSectionHeader>      <FaqSectionSearch>        <SearchFieldLabel style={{ fontWeight: 550 }}>Search questions</SearchFieldLabel>        <SearchFieldControl>          <SearchFieldInput placeholder="Try “billing” or “phone”" />          <SearchFieldClear />        </SearchFieldControl>        <SearchFieldMessage />      </FaqSectionSearch>      <FaqSectionList>        {questions.map((item, index) => (          <FaqSectionItem key={item.question} defaultOpen={index === 0}>            <FaqSectionQuestion>{item.question}</FaqSectionQuestion>            <FaqSectionAnswer>              <p style={{ margin: 0 }}>{item.answer}</p>            </FaqSectionAnswer>          </FaqSectionItem>        ))}      </FaqSectionList>      <FaqSectionEmpty>        <p style={{ margin: 0 }}>No questions match that search.</p>        <a href="#contact" style={{ color: "var(--uai-text)", fontWeight: 550 }}>          Ask the support team        </a>      </FaqSectionEmpty>    </FaqSection>  );}

Manual installation

faq-section.tsx

Loading component source…

esc
ThinkingAI
MessageAI
CitationAI
AttachmentAI
Tool CallAI
Response StatusAI
Run SummaryAI
Conversation ThreadAI · Block
Research SessionAI · Block
File AnalysisAI · Block
Agent RunAI · Block
Approval CardFeedback
Empty StateFeedback
Status BannerFeedback
Progress SummaryFeedback
Inline FeedbackFeedback
Confirmation DialogFeedback
Activity TimelineFeedback
Skeleton GroupFeedback
Prompt ComposerForms
Form FieldForms
Search FieldForms
Filter BarForms
File UploadForms
Date Range PickerForms
Form Error SummaryForms
Unsaved Changes BarForms
Step IndicatorForms
Task ListData Display
Data Table ToolbarData Display
Metric CardData Display
Description ListData Display
Comparison TableData Display
Kanban BoardData Display
Calendar ViewData Display
Audit LogData Display
App HeaderNavigation
App SidebarNavigation
Breadcrumb TrailNavigation
Page TabsNavigation
Command MenuNavigation
Split PaneNavigation
Sign-in CardAuthentication
Sign-up CardAuthentication
Password RecoveryAuthentication
Code VerificationAuthentication · Block
Onboarding WizardAuthentication · Block
Workspace SetupAuthentication · Block
Coupon FieldCommerce
Quantity PickerCommerce
Cart ItemCommerce
Price SummaryCommerce
Order StatusCommerce
Product DetailCommerce · Block
Product ListingCommerce · Block
Cart DrawerCommerce · Block
CheckoutCommerce · Block
Order TrackingCommerce · Block
Subscription ManagementCommerce · Block
Announcement BarMarketing
Pricing ToggleMarketing
Testimonial CardMarketing
Product GalleryMarketing
Trust PanelMarketing
Newsletter FormMarketing
Hero SectionMarketing · Block
Feature ShowcaseMarketing · Block
Pricing SectionMarketing · Block
Testimonials SectionMarketing · Block
FAQ SectionMarketing · Block
Call to ActionMarketing · Block
Waitlist SectionMarketing · Block
Contact SectionMarketing · Block
Author CardContent
CommentContent
Reaction BarContent
Share MenuContent
Changelog EntryContent
Article PageContent · Block
Documentation PageContent · Block
Changelog PageContent · Block
Comment ThreadContent · Block
Community FeedContent · Block
Public ProfileContent · Block
Map FrameMaps
Map ControlsMaps
Map MarkerMaps
Map LegendMaps
Place CardMaps
Route SummaryMaps
Dashboard ShellApplication · Block
Settings PageApplication · Block
Profile PageApplication · Block
Team ManagementApplication · Block
Notification CenterApplication · Block
Billing PortalApplication · Block
Search ResultsApplication · Block
Resource ManagerOperations · Block
Data ExplorerOperations · Block
Import WorkflowOperations · Block
Approval QueueOperations · Block
Audit Log ViewerOperations · Block
Incident DashboardOperations · Block
Report BuilderOperations · Block
Document FieldBrazil
CEP FieldBrazil
Pix PaymentBrazil
Installment PickerBrazil