Files
2026-07-13 10:48:55 +00:00

7.1 KiB
Raw Permalink Blame History

Note

本文档由 WeHub 基于上游 README 翻译整理,属于社区翻译,非官方中文文档。
English · 原始项目 · 上游 README
原作者、版权与许可证归属以原始项目及本仓库 LICENSE 文件为准。

Creative Tim UI

Creative Tim UI

Creative Tim UI 是一个基于 shadcn/ui 构建的综合性组件库,可帮助你更快地开发现代 Web 应用。

概述

Creative Tim UI 提供预构建、可定制的 React 组件与区块,专为构建美观且可用于生产环境的 Web 应用而设计。 CLI 可让你轻松将这些组件添加到你的 Next.js 项目中。

安装

你可以直接使用 npx 运行 Creative Tim UI CLI,或进行全局安装:

# Use directly (recommended)
npx @creative-tim/ui@latest add <component-name>

# Or using shadcn cli
npx shadcn@latest add https://creative-tim.com/ui/r/all.json

前置要求

在使用 Creative Tim UI 之前,请确保你的 Next.js 项目满足以下要求:

  • Node.js 18 或更高版本
  • 项目中已初始化 shadcn/uinpx shadcn@latest init
  • 已配置 Tailwind CSS

使用

安装全部组件

一次性安装所有可用的 Creative Tim UI 组件:

npx @creative-tim/ui@latest add all

该命令将:

  • 若尚未配置,则设置 shadcn/ui
  • 将所有 Creative Tim UI 组件安装到你配置的组件目录
  • 向项目添加必要的依赖

安装指定组件

使用 components add 命令安装单个组件:

npx @creative-tim/ui@latest add <component-name>

示例:

# Install the orb component
npx @creative-tim/ui@latest add card

备选方案:使用 shadcn CLI

你也可以使用标准的 shadcn/ui CLI 安装组件:

# Install all components
npx shadcn@latest add https://creative-tim.com/ui/r/all.json

# Install a specific component
npx shadcn@latest add https://creative-tim.com/ui/r/button.json

所有可用组件可在此处 查看,也可在此处. 浏览示例区块列表。

区块

浏览我们按类别整理的即用型区块集合。每个区块均可完全自定义,并可通过一条命令添加到你的项目中。

应用 UI

Modals
Modals
5 Blocks
Account
Account
7 Blocks
Billing
Billing
5 Blocks

营销

Testimonial Sections
Testimonial Sections
17 Blocks
Contact Sections
Contact Sections
15 Blocks
Footers
Footers
16 Blocks
FAQs
FAQs
6 Blocks
Blog
Blog
15 Blocks

电商 UI

适用于产品列表、购物车和结账流程的即用型区块。

Ecommerce Sections
Ecommerce Sections
14 Blocks

Web 3.0

为去中心化应用、区块链项目和加密货币平台打造的创新区块。

Web 3.0 Cards
Web 3.0 Cards
5 Blocks

贡献

如果你想为 Creative Tim UI 做出贡献,请按以下步骤操作:

  1. Fork 该仓库
  2. 创建新分支
  3. 在 registry 中修改组件。
  4. 向 main 分支提交 PR。

请阅读贡献指南

版权与许可

Creative Tim UI 建立在开源社区卓越工作的基础之上:

我们感谢这些项目在开源许可下公开其工作成果。

许可证

根据 MIT license. 授权。

Creative Tim. 倾心打造