Atelier UI

搜索组件…

搜索组件…

Image Overlay Card

满版渐变图片卡片,悬停或聚焦时说明文字上滑,附标签与角落操作按钮。

在沙盒中编辑

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

属性

ImageOverlayCardProps

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

属性类型默认值说明
title* 必填string——
descriptionstring——
tagsstring[][]—
imageClassNamestring"from-cyan-400 via-blue-600 to-indigo-900"Tailwind gradient utilities standing in for the photo
actionLabelstring"Save"—
onActionChange(active: boolean) => void——

安装

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

同类组件