Atelier UI

Search components…

Search components…

Expandable Card

Card that smoothly expands to reveal details using grid-rows animation, with aria-expanded and aria-controls.

Edit in sandbox

Copy a prompt for your AI coding tool with the source, dependencies and usage

Props

ExpandableCardProps

Also accepts all props of Omit<React.ComponentProps<"div">, "title">

PropTypeDefaultDescription
title* requiredReact.ReactNode——
summaryReact.ReactNode——
iconReact.ReactNode——
children* requiredReact.ReactNode—Revealed details
defaultOpenbooleanfalse—
onOpenChange(open: boolean) => void——

Install

$ npx shadcn@latest add https://chromotion.dev/r/expandable-card.json

More like this