Atelier UI

搜索组件…

搜索组件…

Expandable Card

点击平滑展开详情的卡片,使用 grid-rows 动画并带完整 aria 状态。

在沙盒中编辑

复制一段给 AI 编程工具的提示词,包含源码、依赖和用法

属性

ExpandableCardProps

同时支持以下类型的全部属性: Omit<React.ComponentProps<"div">, "title">

属性类型默认值说明
title* 必填React.ReactNode——
summaryReact.ReactNode——
iconReact.ReactNode——
children* 必填React.ReactNode—Revealed details
defaultOpenbooleanfalse—
onOpenChange(open: boolean) => void——

安装

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

同类组件