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
結果が見つかりません。
候補
カレンダー
絵文字を検索
計算機
設定
プロフィール⌘P
請求⌘B
設定⌘S
import {
Calculator,
Calendar,概要#
<Command /> コンポーネントは、Dip による cmdk コンポーネントを使用します。
インストール#
pnpm dlx shadcn@latest add command
使用法#
import {
Command,
CommandDialog,
CommandEmpty,
CommandGroup,
CommandInput,
CommandItem,
CommandList,
CommandSeparator,
CommandShortcut,
} from "@/components/ui/command"<Command className="max-w-sm rounded-lg border">
<CommandInput placeholder="Type a command or search..." />
<CommandList>
<CommandEmpty>No results found.</CommandEmpty>
<CommandGroup heading="Suggestions">
<CommandItem>Calendar</CommandItem>
<CommandItem>Search Emoji</CommandItem>
<CommandItem>Calculator</CommandItem>
</CommandGroup>
<CommandSeparator />
<CommandGroup heading="Settings">
<CommandItem>Profile</CommandItem>
<CommandItem>Billing</CommandItem>
<CommandItem>Settings</CommandItem>
</CommandGroup>
</CommandList>
</Command>構成#
次の構成を使用して Command を作成します。
Command
├── CommandInput
└── CommandList
├── CommandEmpty
├── CommandGroup
│ ├── CommandItem
│ └── CommandItem
├── CommandSeparator
└── CommandGroup
├── CommandItem
└── CommandItem基本#
ダイアログ内の単純なコマンド メニュー。
Command Palette
Search for a command to run...
"use client"
import * as React from "react"ショートカット#
Command Palette
Search for a command to run...
"use client"
import * as React from "react"グループ#
グループ、アイコン、区切り文字を含むコマンド メニュー。
Command Palette
Search for a command to run...
"use client"
import * as React from "react"スクロール可能#
複数の項目を含むスクロール可能なコマンド メニュー。
Command Palette
Search for a command to run...
"use client"
import * as React from "react"RTL#
shadcn/ui で RTL サポートを有効にするには、RTL 構成ガイド を参照してください。
لم يتم العثور على نتائج.
اقتراحات
التقويم
البحث عن الرموز التعبيرية
الآلة الحاسبة
الإعدادات
الملف الشخصي⌘P
الفوترة⌘B
الإعدادات⌘S
"use client"
import * as React from "react"API リファレンス#
詳細については、cmdk のドキュメントを参照してください。