Accordion
bundui/accordion-defaultFreeComponent
A vertically stacked set of interactive headings that each reveal a section of content.
Live preview
live · rendered by the registry
Rendered by bundui on their own page — this is the component running, not a screenshot of it.Install it
npx shadcn@latest add https://bundui.io/r/accordion-default.jsonSource
1import {2 Accordion,3 AccordionContent,4 AccordionItem,5 AccordionTrigger6} from "@/components/ui/accordion";78const items = [9 {10 id: "1",11 title: "Product Information",12 content:13 "Our flagship product combines cutting-edge technology with sleek design. Built with premium materials, it offers unparalleled performance and reliability."14 },15 {16 id: "2",17 title: "Shipping Details",18 content:19 "We offer worldwide shipping through trusted courier partners. Standard delivery takes 3-5 business days, while express shipping ensures delivery within 1-2 business days."20 },21 {22 id: "3",23 title: "Return Policy",24 content:25 "We stand behind our products with a comprehensive 30-day return policy. If you're not completely satisfied, simply return the item in its original condition."26 }27];2829export default function AccordionDemo() {30 return (31 <Accordion type="single" className="w-full" defaultValue="1">32 {items.map((item) => (33 <AccordionItem value={item.id} key={item.id} className="py-2">34 <AccordionTrigger className="font-semibold">{item.title}</AccordionTrigger>35 <AccordionContent className="text-muted-foreground pb-2">{item.content}</AccordionContent>36 </AccordionItem>37 ))}38 </Accordion>39 );40}
Files it writes
More from bundui
All 217 items| Component | Registry | Kind | Access | Installs | Command |
|---|---|---|---|---|---|
| Accordionaccordion-collapsible | bundui | Components | Free | no deps · 2 files | |
| Accordionaccordion-with-plus-icon | bundui | Components | Free | 2 deps | |
| Alertalert-danger | bundui | Components | Free | 1 dep | |
| Alertalert-default | bundui | Components | Free | no deps | |
| Alert Dialogalert-dialog | bundui | Components | Free | no deps | |
| Alertalert-success | bundui | Components | Free | 1 dep | |
| Alertalert-warning | bundui | Components | Free | 1 dep | |
| Alertalert-with-action-button | bundui | Components | Free | 1 dep |
