About
A frequently asked questions block with a live search box that filters by question and answer and highlights matches. Includes category chips, smooth accordion answers and a clear empty state.
Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds FAQ Search to your project and fits it to your theme.
Code
How FAQ Search is used: the demo's code. The component's own source comes with a free account.
Usage.tsx
// This is a file with a demo for your component
// That's what users will see in the preview
// Create new files in this directory to add more demos
"use client";
import * as React from "react";
import { Component } from "@/components/ui/faq-search";
export default function DemoOne() {
return (
<div className="flex w-full flex-col items-center gap-8 bg-background px-4 py-16 text-foreground sm:py-20">
<div className="max-w-xl text-center">
<p className="text-sm font-medium text-primary">Help center</p>
<h2 className="mt-2 text-3xl font-semibold tracking-tight sm:text-4xl">Frequently asked questions</h2>
<p className="mt-3 text-base leading-7 text-muted-foreground">Search for an answer, or browse by topic.</p>
</div>
<Component />
</div>
);
}








