Components
- Accordion
- Alert
- Alert Dialog
- Aspect Ratio
- Avatar
- Badge
- Breadcrumb
- Button
- Button Group
- Calendar
- Card
- Carousel
- Chart
- Checkbox
- Collapsible
- Combobox
- Command
- Context Menu
- Data Table
- Date Picker
- Dialog
- Drawer
- Dropdown Menu
- Empty
- Field
- Hover Card
- Input
- Input Group
- Input OTP
- Item
- Kbd
- Label
- Menubar
- Native Select
- Navigation Menu
- Pagination
- Popover
- Progress
- Radio Group
- Resizable
- Scroll Area
- Select
- Separator
- Sheet
- Sidebar
- Skeleton
- Slider
- Sonner
- Spinner
- Switch
- Table
- Tabs
- Textarea
- Toggle
- Toggle Group
- Tooltip
- Typography
Get Started
@shadcn/react
@shadcn/helpers
Force UI registry
Utilities
About#
The <Command /> component uses the cmdk component by Dip.
Installation#
pnpm dlx shadcn@latest add @force-ui-svelte/command
Usage#
<script lang="ts">
import * as Command from "@/svelte-ui/command/index.js";
</script><Command.Root>
<Command.Input placeholder="Type a command or search..." />
<Command.List>
<Command.Empty>No results found.</Command.Empty>
<Command.Group heading="Suggestions">
<Command.Item>Calendar</Command.Item>
<Command.Item>Search Emoji</Command.Item>
<Command.Item>Calculator</Command.Item>
</Command.Group>
<Command.Separator />
<Command.Group heading="Settings">
<Command.Item>Profile</Command.Item>
<Command.Item>Billing</Command.Item>
<Command.Item>Settings</Command.Item>
</Command.Group>
</Command.List>
</Command.Root>Composition#
Use the following composition to build a Command:
Command.Root
├── Command.Input
└── Command.List
├── Command.Empty
├── Command.Group
│ ├── Command.Item
│ └── Command.Item
├── Command.Separator
└── Command.Group
├── Command.Item
└── Command.ItemExamples#
Basic#
A simple command menu in a dialog.
Shortcuts#
Groups#
A command menu with groups, icons and separators.
Scrollable#
Scrollable command menu with multiple items.
RTL#
To enable RTL support in Force UI, see the RTL configuration guide.
API Reference#
See the cmdk documentation for more information.
Deploy your shadcn/ui app on Vercel
Trusted by OpenAI, Sonos, Adobe, and more.
Vercel provides tools and infrastructure to deploy apps and features at scale.
Deploy to Vercel