BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/uiable/accordion-basic

Accordion Basic

uiable/accordion-basic
FreeComponent

Accordion Basic variant for component.

Live preview

live · rendered by the registry
Rendered by uiable on their own page — this is the component running, not a screenshot of it.

Install it

npx shadcn@latest add https://uiable.com/r/accordion-basic.json

Source

src/components/uiable/accordion/accordion-basic.tsxuiable.com/r/accordion-basic.json
1// shadcn
2import {
3 Accordion,
4 AccordionContent,
5 AccordionItem,
6 AccordionTrigger
7} from "@/components/ui/accordion";
8
9// ------------------------------ | ACCORDION BASIC | ------------------------------ //
10
11export default function AccordionBasic() {
12 return (
13 <Accordion defaultValue={["item-1"]} className="w-full">
14 <AccordionItem value="item-1" className="bg-card border-border">
15 <AccordionTrigger className="p-4 text-base font-semibold hover:no-underline">
16 Accordion Item #1
17 </AccordionTrigger>
18 <AccordionContent className="p-4 pt-0">
19 <strong>This is the first item's accordion body.</strong> It is hidden
20 by default, until the collapse plugin adds the appropriate classes
21 that we use to style each element.
22 </AccordionContent>
23 </AccordionItem>
24 <AccordionItem value="item-2" className="bg-card border-border">
25 <AccordionTrigger className="p-4 text-base font-semibold hover:no-underline">
26 Accordion Item #2
27 </AccordionTrigger>
28 <AccordionContent className="p-4 pt-0">
29 <strong>This is the second item's accordion body.</strong> It is
30 hidden by default, until the collapse plugin adds the appropriate
31 classes that we use to style each element.
32 </AccordionContent>
33 </AccordionItem>
34 <AccordionItem value="item-3" className="bg-card border-border">
35 <AccordionTrigger className="p-4 text-base font-semibold hover:no-underline">
36 Accordion Item #3
37 </AccordionTrigger>
38 <AccordionContent className="p-4 pt-0">
39 <strong>This is the third item's accordion body.</strong> It is hidden
40 by default, until the collapse plugin adds the appropriate classes
41 that we use to style each element.
42 </AccordionContent>
43 </AccordionItem>
44 </Accordion>
45 );
46}

What it pulls in

Other registry items

  • @uiable/accordion

Files it writes

  • src/components/uiable/accordion/accordion-basic.tsx

Facts

Registry
uiable
Type
registry:ui
Access
Free
Files written
1
Licence
MIT
First indexed
2026-08-09
Last confirmed
today

Go to the source

Docs on uiable uiable.com codedthemes/uiable on GitHub Raw registry item This item as JSON

More from uiable

All 730 items
Same registry, same kind — the ones you would have found next
ComponentRegistryKindAccessInstallsCommand
AccordionaccordionuiableComponentsFree2 deps
Accordion Bordersaccordion-bordersuiableComponentsFreeno deps
Accordion Cardaccordion-carduiableComponentsFreeno deps
Accordion Disabledaccordion-disableduiableComponentsFreeno deps
Accordion Flushaccordion-flushuiableComponentsFreeno deps
Accordion Multipleaccordion-multipleuiableComponentsFreeno deps
AlertalertuiableComponentsFree1 dep
Alert Actionalert-actionuiableComponentsFreeno deps
BlockDex

Built by

Kynth Studios

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

BlockDex

BlockDex

Built by

Kynth Studios

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

BlockDex

BlockDex

Built by

Kynth Studios

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

BlockDex