Atelier UI

搜索组件…

搜索组件…

Empty State

空状态:图标、文案与操作按钮,可选虚线边框,用于空列表、空搜索与上传区。

在沙盒中编辑

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

属性

EmptyStateProps

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

属性类型默认值说明
iconReact.ReactNode——
title* 必填React.ReactNode——
descriptionReact.ReactNode——
actionsReact.ReactNode—Buttons or links rendered under the copy
borderedbooleanfalseDashed outline, good for drop areas and empty tables

安装

$ npx shadcn@latest add https://chromotion.dev/r/empty-state.json

同类组件