Bouncy Accordion

An FAQ-style list where one row opens at a time: the open row breaks away from its neighbours with a bouncy gap and rounded corners, its content expands to its measured height, and rows can carry icons. Collapsible, controlled or uncontrolled.

Preview

Bouncy Accordion preview width

Install

Add it with the shadcn CLI, or copy the source manually.

$ bunx --bun shadcn add @karaui/bouncy-accordion
@karaui not found? Add it to components.json
{
  "registries": {
    "@karaui": "https://karaui.kamisama-v0.my.id/r/{name}.json"
  }
}

@karaui is in shadcn's public registry directory, so the latest CLI needs no setup. On an older CLI, merge this into the existing file once and every @karaui/… install resolves.

API Reference

items
BouncyAccordionItem[]
—
value?
string | null
—
defaultValue?
string | null
null
onValueChange?
((value: string | null) => void)
—
collapsible?
boolean
true
className?
string
—
classNames?
BouncyAccordionClassNames
—

Updated