Velocity X Components

Cards & Expandables

Accordion Card Group

A stack of independent cards where opening one smoothly expands its detail and closes any other open card, while every card's summary stays legible whether open or closed. Height animates off the panel's real measured content, so there's never a layout jump.

Subscription Included with the Velocity Components subscription.
bash
$ velocityx add accordion-card-group

Built for react. Needs react already installed as a peer dependency. An Astro-only project needs @astrojs/react wired up first — this won't run on its own in plain Astro.

Full docs for Accordion Card Group →

Needs a licence key — subscribe here, then velocityx loginonce.

react v1.0.1 react
Accordion Card Group

Manage your subscription, payment method and download past invoices.

Invite teammates, assign roles and manage seat limits.

Two-factor authentication, active sessions and API keys.

Props

NameTypeRequiredDefaultDescription
items{ id, eyebrow?, title, summary, detail: ReactNode, icon?: ReactNode }[]No[]
defaultOpenIdstring | nullNonullid of the card open on first render
classNamestringNo''

File this creates

The CLI writes this path into your project, relative to its root — nothing else moves.

text
components/velocity/accordion-card-group/AccordionCardGroup.jsx

Using the Accordion Card Group component

Install it with velocityx add accordion-card-group. The CLI writes the source straight into your project — no runtime dependency, no registry lock-in, and it themes itself from the same primary-*/accent-* scale as the rest of the library.

More from Cards & Expandables.