返回组件列表
反馈
通知横幅
带有内联操作的紧凑提醒横幅。
预览
这里展示的源码与 shadcn 从生成 JSON 安装的源码一致。
Registry build completed
Seven components were generated and are ready to install from your preview domain.
安装
构建 registry 并启动开发服务后,在消费项目中运行这条命令。
安装命令
pnpm dlx shadcn@latest add http://localhost:3000/r/notification-banner.json源码与依赖
安装前可以确认组件源码路径、registry 依赖和 npm 依赖。
源码路径
registry/default/notification-banner/notification-banner.tsxRegistry 依赖
alertbutton
NPM 依赖
lucide-react