shadcn/ui

shadcn/ui 是一套使用 Tailwind CSS 制作的开源精美组件,你可以将其复制粘贴到你的应用中。

¥shadcn/ui is an open-source set of beautifully designed components made with Tailwind CSS that you can copy and paste into your apps.

要在新的 monorepo 中开始使用 shadcn/ui,请运行:

¥To get started with shadcn/ui in a new monorepo, run:

Terminal
pnpm dlx shadcn@canary init

出现提示时,请选择 monorepos 选项。

¥When prompted, select the option for monorepos.

要添加组件,请运行:

¥To add a component, run:

Terminal
pnpm dlx shadcn@canary add [COMPONENT]

更多信息

¥More information

要了解更多关于在 Turborepo 中使用 shadcn/ui 的信息,请参阅 访问 shadcn/ui 文档

¥To learn more about using shadcn/ui in Turborepo, visit the docs for shadcn/ui.