Card FAQ Accordion
A two-column FAQ: a heading and link on the left, an accordion of rounded cards with pill toggles and a smooth reveal on the right, one row open at a time. Harvested from Yosra Planner.
npx shadcn@latest add https://ui.develop-better-solutions.com/r/card-faq-accordion.jsonDependencies:
lucide-reactUses:badge
FAQEverything you might
Ask a questionEverything you might
be wondering about
Standard to-do apps are static lists that pile up until they overwhelm you. This is an adaptive daily engine: it takes your tasks, meetings and routines, estimates real duration, and builds a realistic schedule around your focus hours.
Not at all. You capture what needs doing in natural language and the planner detects priority, deadlines and dependencies to organize your timeline without manual drag-and-drop.
Yes. When meetings run long or urgent work arrives, tap one button and the remaining tasks reschedule into viable open windows without lost progress.
Usage
card-faq-accordion-example.tsx
import { CardFaqAccordion } from "@dbs/ui";
const items = [
{
question: "How is this different from a regular to-do app?",
answer:
"Standard to-do apps are static lists that pile up until they overwhelm you. This is an adaptive daily engine: it takes your tasks, meetings and routines, estimates real duration, and builds a realistic schedule around your focus hours.",
},
{
question: "Do I need to plan everything manually?",
answer:
"Not at all. You capture what needs doing in natural language and the planner detects priority, deadlines and dependencies to organize your timeline without manual drag-and-drop.",
},
{
question: "Can I change my plan during the day?",
answer:
"Yes. When meetings run long or urgent work arrives, tap one button and the remaining tasks reschedule into viable open windows without lost progress.",
},
];
export default function CardFaqAccordionExample() {
return (
<CardFaqAccordion
badge="FAQ"
title={
<>
Everything you might
<br />
be wondering about
</>
}
askLabel="Ask a question"
askHref="#"
items={items}
defaultOpen={0}
/>
);
}