FAQ Accordion
A list of expandable question rows separated by dotted rules, with multi-open support. Harvested from Hello Human.
npx shadcn@latest add https://ui.develop-better-solutions.com/r/faq-accordion.jsonDependencies:
lucide-reactYes, via our React SDK, vanilla JS script tags, a Python backend SDK, or WebSocket APIs directly.
Usage
faq-accordion-example.tsx
import { FaqAccordion } from "@dbs/ui";
const items = [
{
question: "Can I integrate it into my own app?",
answer:
"Yes, via our React SDK, vanilla JS script tags, a Python backend SDK, or WebSocket APIs directly.",
},
{
question: "How many agents can I create?",
answer:
"No limit on any plan. You are bounded only by concurrent calls and your monthly credit limit.",
},
{
question: "What models can I use?",
answer:
"Gemini, GPT-4o, Claude, Mistral, or bring your own via OpenAI-compatible endpoints.",
},
{
question: "Can my agent call external services?",
answer:
"Yes, with client- and server-side tool calling, webhooks, and MCP integrations.",
},
];
export default function FaqAccordionExample() {
return (
<div className="w-full max-w-xl">
<FaqAccordion items={items} defaultOpen={[0]} />
</div>
);
}