Expandable card

Core

Give a dense card more room when requested.

pnpm dlx shadcn@latest add https://wui.alann.works/r/expandable-card.json

Shared spring presets (snappy, tactile, gentle) keep every interaction cohesive.

API Reference

PropTypeDefault
title*stringrequired
descriptionstring—
children*ReactNoderequired
defaultExpandedboolean—
widthnumber—
expandedWidthnumber—
Categories
disclosure
Dependencies
lucide-reactmotion