Components
- Accordion
- Alert
- Alert Dialog
- Aspect Ratio
- Attachment
- Avatar
- Badge
- Breadcrumb
- Bubble
- Button
- Button Group
- Calendar
- Card
- Carousel
- Chart
- Checkbox
- Collapsible
- Combobox
- Command
- Context Menu
- Data Table
- Date Picker
- Dialog
- Direction
- Drawer
- Dropdown Menu
- Empty
- Field
- Hover Card
- Input
- Input Group
- Input OTP
- Item
- Kbd
- Label
- Marker
- Menubar
- Message
- Message Scroller
- Native Select
- Navigation Menu
- Pagination
- Popover
- Progress
- Questionnaire
- Radio Group
- Resizable
- Scroll Area
- Select
- Separator
- Sheet
- Sidebar
- Skeleton
- Slider
- Spinner
- Switch
- Table
- Tabs
- Textarea
- Toast
- Toggle
- Toggle Group
- Tooltip
- Typography
Sections
@shadcn/react
@shadcn/helpers
Utilities
オープンソースレジストリのインデックスは、すぐに利用できるすべてのオープンソースレジストリの一覧です。
shadcn add または shadcn search を実行すると、CLI はレジストリインデックスから対象のレジストリを自動的に探し、components.json に追加します。
完全な一覧は https://ui.shadcn.com/r/registries.json で確認できます。
公開 GitHub レジストリを owner/repo/item 形式で使うために、レジストリディレクトリへ登録する必要はありません。レジストリディレクトリは @acme のような名前空間用です。
レジストリを追加する#
apps/v4/registry/directory.jsonにレジストリを追加しますpnpm validate:registriesを実行してレジストリディレクトリを検証します- https://github.com/shadcn-ui/ui へプルリクエストを作成します
リクエストを送信すると、チームによる検証とレビューが行われます。
プルリクエストがマージされると、レジストリはすぐに公開されます。 レジストリヘルス は公開後に監視を開始し、基準データの収集中も公開を遅延・制限しません。
要件#
- レジストリはオープンソースであり、公開アクセス可能である必要があります。
- レジストリは レジストリスキーマ仕様 に準拠した有効な JSON ファイルである必要があります。
- レジストリはネストのないフラットな構成である必要があります。すなわち
/registry.jsonと/component-name.jsonファイルがレジストリのルートにあることが想定されています。 files配列が存在する場合、contentプロパティを含めてはいけません。
有効なレジストリの例を示します。
{
"$schema": "https://ui.shadcn.com/schema/registry.json",
"name": "acme",
"homepage": "https://acme.com",
"items": [
{
"name": "login-form",
"type": "registry:component",
"title": "Login Form",
"description": "A login form component.",
"files": [
{
"path": "registry/new-york/auth/login-form.tsx",
"type": "registry:component"
}
]
},
{
"name": "example-login-form",
"type": "registry:component",
"title": "Example Login Form",
"description": "An example showing how to use the login form component.",
"files": [
{
"path": "registry/new-york/examples/example-login-form.tsx",
"type": "registry:component"
}
]
}
]
}shadcn/uiアプリをVercelにデプロイ
OpenAI、Sonos、Adobeなどに採用されています。
Vercelは、アプリや機能を大規模にデプロイするためのツールと インフラを提供します。
Vercelにデプロイ