saturation/uisaturation/ui
DocsComponentsBlocksPages
GitHub

Sections

IntroductionComponentsInstallationMCPTheming

Components

ComponentsAccordionAI Chat InputAlertAnimated GroupAnimated NumberAvatarBadgeBeamBlur FadeBorder TrailBreadcrumbButtonButton GroupCalendar PickerCardChartCheckboxCollapsibleComboboxCommandComparison SliderContext MenuCredit CardData TableDate PickerDialogDropdown MenuEmoji PickerEmptyFieldFiltersFull CalendarGlow EffectInputInput GroupInput OTPItemKanbanKbdMenubarNavigation MenuNovel EditorPaginationParallaxProgressProgressive BlurRadio GroupRippleSelectSeparatorSheetSkeletonSliderSonnerSpinnerSpotlightSwitchTableTabsText EffectText ShimmerTextareaToggleToggle GroupTreeTypography
Docs/Components/Command

Command

Fast, composable command menu for React. Perfect for search, quick actions, and Cmd+K interfaces.

Loading...

Installation

pnpm dlx shadcn@latest add https://ui.saturation.io/r/command.json

Tailwind v4 — Source Scanning

Saturation UI copies component source into your project via the shadcn registry (no npm package). If Tailwind v4 isn't scanning your components directory, add this to your CSS entry file:

@source "../components";

This ensures all utility classes in CVA variants and data attribute selectors are included in your build.

Usage

import {
  Command,
  CommandDialog,
  CommandEmpty,
  CommandGroup,
  CommandInput,
  CommandItem,
  CommandList,
} from "@/components/ui/command"
<Command>
  <CommandInput placeholder="Type a command or search..." />
  <CommandList>
    <CommandEmpty>No results found.</CommandEmpty>
    <CommandGroup heading="Suggestions">
      <CommandItem>Calendar</CommandItem>
      <CommandItem>Search</CommandItem>
    </CommandGroup>
  </CommandList>
</Command>

Examples

Dialog

Loading...
Command in a dialog.

Command Palette

Loading...
Palette interface.

With Groups

Loading...
Grouped sections with shortcuts.

API Reference

PropTypeDefaultDescription
childrenReact.ReactNode—Command menu content.
PreviousComboboxNextComparison Slider

On This Page

  • Installation
  • Usage
  • Examples
  • Dialog
  • Command Palette
  • With Groups
  • API Reference
No results found.
Suggestions
Calendar
Search Emoji
Calculator
Settings
Profile
Billing
Settings

Command Palette

Search for a command to run...

No results found.
Actions
Create New Project
Search Documents
Navigation
Dashboard
Documents
Team Members
Branches
Settings
No results found.
Suggestions
Calendar⌘C
Messages⌘M
Calculator⌘K
Settings
Profile⌘P
Mail⌘B
Billing⌘S
Settings⌘,