All components

Command

Command palette with search and keyboard nav.

Full API on ui.shadcn.com

Default

A command palette. Usually mounted inside a Dialog on ⌘K; shown inline here.

import {
  Command,
  CommandEmpty,
  CommandGroup,
  CommandInput,
  CommandItem,
  CommandList,
  CommandSeparator,
  CommandShortcut,
} from "@smaller-earth/ui"

<Command>
  <CommandInput placeholder="Search or jump to..." />
  <CommandList>
    <CommandEmpty>No results found.</CommandEmpty>
    <CommandGroup heading="Suggestions">
      <CommandItem>Dashboard</CommandItem>
      <CommandItem>Calendar</CommandItem>
    </CommandGroup>
    <CommandSeparator />
    <CommandGroup heading="Settings">
      <CommandItem>
        Profile
        <CommandShortcut>⌘P</CommandShortcut>
      </CommandItem>
    </CommandGroup>
  </CommandList>
</Command>
Command · Smaller Earth UI