返回组件列表
内容
功能列表
适用于产品概览和引导说明的三列功能列表。
预览
这里展示的源码与 shadcn 从生成 JSON 安装的源码一致。
System
Library building blocks
Use this pattern for feature summaries, capability lists, or onboarding sections.
Composable blocks
Ship source-level components that can be edited in every consuming app.
Registry output
Build installable JSON artifacts that shadcn CLI can consume by URL.
Preview first
Keep a visual workbench so humans and AI tools can inspect available UI.
安装
构建 registry 并启动开发服务后,在消费项目中运行这条命令。
安装命令
pnpm dlx shadcn@latest add http://localhost:3000/r/feature-list.json源码与依赖
安装前可以确认组件源码路径、registry 依赖和 npm 依赖。
源码路径
registry/default/feature-list/feature-list.tsxRegistry 依赖
badgecard
NPM 依赖
lucide-react