BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/gymnopedies/accordion

Accordion

gymnopedies/accordion
FreeComponent

Accordion — gymnopédies-themed shadcn primitive.

Install it

npx shadcn@latest add https://gymnopedies.shoota.work/r/accordion.json

Source

src/components/ui/accordion.tsxgymnopedies.shoota.work/r/accordion.json
1import { Accordion as AccordionPrimitive } from "@base-ui/react/accordion"
2
3import { cn } from "@/lib/utils"
4import { ChevronDownIcon, ChevronUpIcon } from "lucide-react"
5
6function Accordion({ className, ...props }: AccordionPrimitive.Root.Props) {
7 return (
8 <AccordionPrimitive.Root
9 data-slot="accordion"
10 className={cn("flex w-full flex-col", className)}
11 {...props}
12 />
13 )
14}
15
16function AccordionItem({ className, ...props }: AccordionPrimitive.Item.Props) {
17 return (
18 <AccordionPrimitive.Item
19 data-slot="accordion-item"
20 className={cn("not-last:border-b", className)}
21 {...props}
22 />
23 )
24}
25
26function AccordionTrigger({
27 className,
28 children,
29 ...props
30}: AccordionPrimitive.Trigger.Props) {
31 return (
32 <AccordionPrimitive.Header className="flex">
33 <AccordionPrimitive.Trigger
34 data-slot="accordion-trigger"
35 className={cn(
36 "group/accordion-trigger relative flex flex-1 items-start justify-between rounded-lg border border-transparent py-2.5 text-left text-sm font-medium transition-all outline-none hover:underline focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 focus-visible:after:border-ring aria-disabled:pointer-events-none aria-disabled:opacity-50 **:data-[slot=accordion-trigger-icon]:ml-auto **:data-[slot=accordion-trigger-icon]:size-4 **:data-[slot=accordion-trigger-icon]:text-muted-foreground",
37 className
38 )}
39 {...props}
40 >
41 {children}
42 <ChevronDownIcon data-slot="accordion-trigger-icon" className="pointer-events-none shrink-0 group-aria-expanded/accordion-trigger:hidden" />
43 <ChevronUpIcon data-slot="accordion-trigger-icon" className="pointer-events-none hidden shrink-0 group-aria-expanded/accordion-trigger:inline" />
44 </AccordionPrimitive.Trigger>
45 </AccordionPrimitive.Header>
46 )
47}
48
49function AccordionContent({
50 className,
51 children,
52 ...props
53}: AccordionPrimitive.Panel.Props) {
54 return (
55 <AccordionPrimitive.Panel
56 data-slot="accordion-content"
57 className="overflow-hidden text-sm data-open:animate-accordion-down data-closed:animate-accordion-up"
58 {...props}
59 >
60 <div
61 className={cn(
62 "h-(--accordion-panel-height) pt-0 pb-2.5 data-ending-style:h-0 data-starting-style:h-0 [&_a]:underline [&_a]:underline-offset-3 [&_a]:hover:text-foreground [&_p:not(:last-child)]:mb-4",
63 className
64 )}
65 >
66 {children}
67 </div>
68// … truncated

What it pulls in

npm packages

  • @base-ui/react
  • lucide-react

Other registry items

  • https://gymnopedies.shoota.work/r/utils.json

Files it writes

  • src/components/ui/accordion.tsx

Facts

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

Go to the source

gymnopedies.shoota.work shoota/gymnopedies on GitHub Raw registry item This item as JSON

More from gymnopedies

All 49 items
Same registry, same kind — the ones you would have found next
ComponentRegistryKindAccessInstallsCommand
AlertalertgymnopediesComponentsFree1 dep
Alert Dialogalert-dialoggymnopediesComponentsFree1 dep
ArticlearticlegymnopediesComponentsFreeno deps
Aspect Ratioaspect-ratiogymnopediesComponentsFreeno deps
AvataravatargymnopediesComponentsFree1 dep
BadgebadgegymnopediesComponentsFree2 deps
BreadcrumbbreadcrumbgymnopediesComponentsFree2 deps
ButtonbuttongymnopediesComponentsFree2 deps
BlockDex

Built by

Kynth Studio

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 Studio

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 Studio

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