BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/octane/accordion

Accordion

octane/accordion
FreeComponent

octane publishes no description for this item.

Live preview

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

Install it

npx shadcn@latest add https://raw.githubusercontent.com/octanejs/octane/main/packages/shadcn/registry/accordion.json

Source

ui/accordion.tsrxraw.githubusercontent.com/octanejs/octane/main/packages/shadcn/registry/accordion.json
1// Base UI base accordion — transcribed from upstream's `bases/base-ui/ui/accordion.tsx`
2// (maintainer-supplied), class strings and data-slot names verbatim. Runs on
3// @octanejs/base-ui/accordion.
4//
5// Note the part mapping: upstream shadcn names the content part `AccordionContent` while the
6// underlying Base UI part is `Accordion.Panel`, and `AccordionTrigger` renders the
7// `Accordion.Header` wrapper itself rather than exposing it. Both are upstream's shape, kept
8// as-is so consumers following the shadcn docs get the components they expect.
9//
10// Octane adaptations: no `"use client"` (octane has no Server Components); upstream's
11// IconPlaceholder resolves at port time to lucide via @octanejs/lucide.
12import { Accordion as AccordionPrimitive } from '@octanejs/base-ui/accordion';
13import { ChevronDownIcon, ChevronUpIcon } from '@octanejs/lucide';
14
15import { cn } from '@/lib/utils';
16
17export function Accordion({ className, ...props }: Record<string, any>) @{
18 <AccordionPrimitive.Root
19 data-slot="accordion"
20 className={cn('flex w-full flex-col', className)}
21 {...props}
22 />
23}
24
25export function AccordionItem({ className, ...props }: Record<string, any>) @{
26 <AccordionPrimitive.Item
27 data-slot="accordion-item"
28 className={cn('not-last:border-b', className)}
29 {...props}
30 />
31}
32
33export function AccordionTrigger({ className, children, ...props }: Record<string, any>) @{
34 <AccordionPrimitive.Header className="flex">
35 <AccordionPrimitive.Trigger
36 data-slot="accordion-trigger"
37 className={cn(
38 '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',
39 className,
40 )}
41 {...props}
42 >
43 {children}
44 <ChevronDownIcon
45 data-slot="accordion-trigger-icon"
46 className="pointer-events-none shrink-0 group-aria-expanded/accordion-trigger:hidden"
47 />
48 <ChevronUpIcon
49 data-slot="accordion-trigger-icon"
50 className="pointer-events-none hidden shrink-0 group-aria-expanded/accordion-trigger:inline"
51 />
52 </AccordionPrimitive.Trigger>
53 </AccordionPrimitive.Header>
54}
55
56// … truncated

What it pulls in

npm packages

  • @octanejs/base-ui@0.1.35
  • @octanejs/lucide@0.1.32

Other registry items

  • @octane/utils

Files it writes

  • ui/accordion.tsrx

Facts

Registry
octane
Type
registry:ui
Access
Free
Files written
1
Licence
MIT
In the index
at or before 2026-08-07
Last confirmed
yesterday

Go to the source

Docs on octane octanejs.dev octanejs/octane on GitHub Raw registry item This item as JSON

More from octane

All 44 items
Same registry, same kind — the ones you would have found next
ComponentRegistryKindAccessInstallsCommand
AlertalertoctaneComponentsFree1 dep
Alert Dialogalert-dialogoctaneComponentsFree1 dep
Aspect Ratioaspect-ratiooctaneComponentsFreeno deps
AvataravataroctaneComponentsFree1 dep
BadgebadgeoctaneComponentsFree1 dep
BreadcrumbbreadcrumboctaneComponentsFree1 dep
ButtonbuttonoctaneComponentsFree2 deps
CardcardoctaneComponentsFreeno deps

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