Separated cards
flx/accordion-05FreeBlock
Each item is a bordered card with spacing between them.
Install it
npx shadcn@latest add https://ui.flexnative.com/r/accordion-05.jsonSource
1import {2 Accordion,3 AccordionContent,4 AccordionItem,5 AccordionTrigger,6} from '@/components/ui/accordion'78const items = [9 {10 value: 'overview',11 title: 'Project overview',12 body: 'A summary of goals, scope, and the people involved in this project.',13 },14 {15 value: 'timeline',16 title: 'Timeline',17 body: 'Key milestones and delivery dates across the next two quarters.',18 },19 {20 value: 'resources',21 title: 'Resources',22 body: 'Links to design files, the repository, and the shared drive.',23 },24]2526export function Accordion05() {27 return (28 <Accordion defaultValue={['overview']} className="w-full max-w-md gap-3">29 {items.map((item) => (30 <AccordionItem31 key={item.value}32 value={item.value}33 className="rounded-lg border px-4 not-last:border-b"34 >35 <AccordionTrigger>{item.title}</AccordionTrigger>36 <AccordionContent className="text-muted-foreground">37 {item.body}38 </AccordionContent>39 </AccordionItem>40 ))}41 </Accordion>42 )43}
What it pulls in
Other registry items
Files it writes
More from flx
All 450 items| Component | Registry | Kind | Access | Installs | Command |
|---|---|---|---|---|---|
| Basicaccordion-01 | flx | Blocks | Free | no deps | |
| Multipleaccordion-02 | flx | Blocks | Free | no deps | |
| With iconsaccordion-03 | flx | Blocks | Free | no deps | |
| FAQaccordion-04 | flx | Blocks | Free | no deps | |
| Plus / minus iconaccordion-06 | flx | Blocks | Free | 1 dep | |
| Left chevronaccordion-07 | flx | Blocks | Free | 1 dep | |
| Rich contentaccordion-09 | flx | Blocks | Free | no deps | |
| Disabled itemaccordion-10 | flx | Blocks | Free | no deps |
