返回组件列表
反馈
空状态
带语义操作和状态标记的可复用产品空状态组件。
预览
这里展示的源码与 shadcn 从生成 JSON 安装的源码一致。
No components yet
Start your registry with one reusable block.
Add a component, document the install command, and verify it with shadcn add before publishing.
安装
构建 registry 并启动开发服务后,在消费项目中运行这条命令。
安装命令
pnpm dlx shadcn@latest add http://localhost:3000/r/empty-state.json源码与依赖
安装前可以确认组件源码路径、registry 依赖和 npm 依赖。
源码路径
registry/default/empty-state/empty-state.tsxRegistry 依赖
badgebuttonempty
NPM 依赖
lucide-react