Sora UI

Accordion · Base UI

An animated accordion component built on Base UI with Motion spring physics, height collapse mask gradient, blur transitions, and gliding layoutId focus ring.

Made by Axyl
Loading...

Default animated Base UI accordion with Motion spring transitions and glowing focus ring.

Installation

npx shadcn@latest add @soralabs/base-accordion

File Structure

accordion.tsx
use-controlled-state.tsx

Usage

Examples

Bordered Container

Loading...

Accordion in a bordered container with refined surface styling.

Separated Cards

Loading...

Accordion with individual card-style separated items.

Multiple Items

Loading...

Accordion allowing multiple panels to expand simultaneously.

Props

Accordion

PropTypeDefault
value?
string | number | (string | number)[]
-
defaultValue?
string | number | (string | number)[]
[]
multiple?
boolean
false
variant?
"default" | "bordered" | "separated" | "ghost"
"default"
showFocusRing?
boolean
true
focusRingClassName?
string
-
focusRingLayoutId?
string
-
disableAnimation?
boolean
false
transition?
Transition
{ type: "spring", bounce: 0.2, visualDuration: 0.4 }
onValueChange?
(value: (string | number)[]) => void
-

AccordionItem

PropTypeDefault
value?
string | number
-
disabled?
boolean
false
className?
string
-

AccordionTrigger

PropTypeDefault
hideChevron?
boolean
false
chevron?
ReactNode
-
chevronClassName?
string
-
showFocusRing?
boolean
-
focusRingClassName?
string
-

AccordionContent

PropTypeDefault
innerClassName?
string
-
className?
string
-

Built by Axyl. A motion-first component registry for React.

Last updated: 9/13/2026

On this page

Help keep SoraLabs moving.

Every contribution helps us build and maintain open-source tools for the community.

Sponsor on GitHub