BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/avail-widgets/accordion

Accordion

avail-widgets/accordion
FreeComponent

UI primitive: Accordion

Install it

npx shadcn@latest add https://elements.nexus.availproject.org/r/accordion.json

Source

registry/avail-widgets/ui/accordion.tsxelements.nexus.availproject.org/r/accordion.json
1"use client";
2
3import * as React from "react";
4import * as AccordionPrimitive from "@radix-ui/react-accordion";
5import { ChevronDownIcon } from "lucide-react";
6
7import { cn } from "@/lib/utils";
8
9function Accordion({
10 ...props
11}: React.ComponentProps<typeof AccordionPrimitive.Root>) {
12 return <AccordionPrimitive.Root data-slot="accordion" {...props} />;
13}
14
15function AccordionItem({
16 className,
17 ...props
18}: React.ComponentProps<typeof AccordionPrimitive.Item>) {
19 return (
20 <AccordionPrimitive.Item
21 data-slot="accordion-item"
22 className={cn("border-b last:border-b-0", className)}
23 {...props}
24 />
25 );
26}
27
28function AccordionTrigger({
29 className,
30 children,
31 hideChevron = true,
32 containerClassName = "w-full",
33 ...props
34}: React.ComponentProps<typeof AccordionPrimitive.Trigger> & {
35 hideChevron?: boolean;
36 containerClassName?: string;
37}) {
38 return (
39 <AccordionPrimitive.Header className={cn("flex", containerClassName)}>
40 <AccordionPrimitive.Trigger
41 data-slot="accordion-trigger"
42 className={cn(
43 "focus-visible:border-ring focus-visible:ring-ring/50 flex flex-1 items-start justify-between gap-4 rounded-md py-4 text-left text-sm font-medium transition-all outline-none hover:underline focus-visible:ring-[3px] disabled:pointer-events-none disabled:opacity-50 [&[data-state=open]>svg]:rotate-180",
44 className,
45 )}
46 {...props}
47 >
48 {children}
49 {!hideChevron && (
50 <ChevronDownIcon className="text-muted-foreground pointer-events-none size-4 shrink-0 translate-y-0.5 transition-transform duration-200" />
51 )}
52 </AccordionPrimitive.Trigger>
53 </AccordionPrimitive.Header>
54 );
55}
56
57function AccordionContent({
58 className,
59 children,
60 ...props
61}: React.ComponentProps<typeof AccordionPrimitive.Content>) {
62 return (
63 <AccordionPrimitive.Content
64 data-slot="accordion-content"
65 className="data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down overflow-hidden text-sm"
66 {...props}
67 >
68 <div className={cn("pt-0 pb-4", className)}>{children}</div>
69 </AccordionPrimitive.Content>
70 );
71}
72
73export { Accordion, AccordionItem, AccordionTrigger, AccordionContent };

What it pulls in

npm packages

  • @radix-ui/react-accordion
  • lucide-react

Other registry items

  • availproject/widgets/utils

Files it writes

  • registry/avail-widgets/ui/accordion.tsx

Facts

Registry
avail-widgets
Type
registry:component
Access
Free
Files written
1
Licence
the repository states none
In the index
at or before 2026-08-13
Last confirmed
yesterday

Go to the source

elements.nexus.availproject.org availproject/widgets on GitHub Raw registry item This item as JSON

More from avail-widgets

All 27 items
Same registry, same kind — the ones you would have found next
ComponentRegistryKindAccessInstallsCommand
All Elementsallavail-widgetsComponentsFreeno deps
Animated Spinneranimated-spinneravail-widgetsComponentsFreeno deps
Badgebadgeavail-widgetsComponentsFree2 deps
Bridge Depositbridge-depositavail-widgetsComponentsFree3 deps · 32 files
Buttonbuttonavail-widgetsComponentsFree2 deps
Cardcardavail-widgetsComponentsFreeno deps
Checkboxcheckboxavail-widgetsComponentsFree2 deps
Collapsiblecollapsibleavail-widgetsComponentsFree1 dep

Also from Kynth Studios

Built for the same person as BlockDex

SkillWorks

Claude Code skills and plugins, scored

skillworks.kynth.studio

RuleStack

AGENTS.md gallery and agent-config comparison

rulestack.kynth.studio

ToolDrift

What the AI coding tools changed last night

tooldrift.kynth.studio

The studio list

One product, taken apart, once a month

Kynth Studios pulls one shipped product open every month — what it does, what it cost to build, what the pipeline behind it looks like, and what the numbers did. One email a month, nothing in between.

Double opt-in — we send one confirmation link and nothing else until you click it.

BlockDex

Built by

Kynth Studios

the studio behind SkillWorks, RuleStack and ToolDrift

part of Toolproof, the measurement layer for AI agent tooling

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

© 2026 BlockDex. A Kynth Studios product. Changelog

BlockDex

The studio list

One product, taken apart, once a month

Kynth Studios pulls one shipped product open every month — what it does, what it cost to build, what the pipeline behind it looks like, and what the numbers did. One email a month, nothing in between.

Double opt-in — we send one confirmation link and nothing else until you click it.

BlockDex

Built by

Kynth Studios

the studio behind SkillWorks, RuleStack and ToolDrift

part of Toolproof, the measurement layer for AI agent tooling

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

© 2026 BlockDex. A Kynth Studios product. Changelog

BlockDex

The studio list

One product, taken apart, once a month

Kynth Studios pulls one shipped product open every month — what it does, what it cost to build, what the pipeline behind it looks like, and what the numbers did. One email a month, nothing in between.

Double opt-in — we send one confirmation link and nothing else until you click it.

BlockDex

Built by

Kynth Studios

the studio behind SkillWorks, RuleStack and ToolDrift

part of Toolproof, the measurement layer for AI agent tooling

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

© 2026 BlockDex. A Kynth Studios product. Changelog

BlockDex