GodUI

Accordion

A disclosure list with spring height animation, rotating chevrons, and single or multiple open modes.

A collection of animated React components built with Tailwind CSS and Framer Motion.

Multiple open

type="multiple" lets any number of panels stay open at once.

Installation

pnpm dlx shadcn@latest add "https://godui.design/r/accordion.json"

Usage

tsx
 
import { Accordion } from "@godui/components";

<Accordion
  type="single"
  defaultValue="a"
  items={[{ value: "a", title: "Question", content: "Answer" }]}
/>;

Props

PropTypeDefaultDescription
itemsAccordionItem[]{ value, title, content, disabled? }.
type"single" | "multiple""single"Open behavior.
defaultValuestring | string[]Initially open value(s).
collapsiblebooleantrueAllow closing the open panel in single mode.

On this page

Built with GodUI

Beautifully crafted motion components for modern interfaces.

Star on GitHub