Introduction
Installation
Next.jsViteLaravelReact RouterRemixAstroTanStack StartTanStack RouterManual InstallationMCP
All componentsTheme
FieldFormInputText FieldTextareaSearch FieldInput OTPNumber FieldNumber FormatSliderCheckboxSwitchRadioSelectCombo BoxList BoxChoice BoxMulti SelectToken FieldNewTag FieldTag GroupCalendarDate FieldDate PickerDate Range PickerRange CalendarTime FieldColor PickerColor FieldColor AreaColor SliderColor SwatchColor Swatch PickerColor ThumbColor WheelDrop ZoneFile Trigger
ButtonButton GroupToggleToggle GroupPreskok Auth Button
EditorHeadingLinkTextKeyboard
CardContainerGrid ListResizableTableTreeSeparatorDescription ListScroll AreaShow MoreToolbar
BreadcrumbsNavbarPaginationTabsSidebar
DialogModalDrawerPopoverPreview TriggerNewSheetTooltipContext MenuDropdownCommandCommand MenuDisclosureMenu
ToastProgress BarProgress CircleMeterLoaderSkeletonNoteBadge
Chart (helpers)Area ChartBar ChartLine ChartPie ChartExperimental ChartsNewExperimental Radial ChartNewExperimental Radar ChartNewBar ListTracker
Async ImageAvatarCarouselPreskok Icon
Popups

Command Menu

Spotlight-style command menu with search, sections, and keyboard shortcuts.

View as MarkdownAsk ChatGPT

Installation

npx shadcn@latest add @preskok/command-menu

Usage

import {
  CommandMenu,
  CommandMenuFooter,
  CommandMenuItem,
  CommandMenuList,
  CommandMenuSearch,
  CommandMenuSection,
} from "@/components/ui/preskok-ui/command-menu"

export function CommandMenuDemo() {
  return (
    <CommandMenu isOpen aria-label="Command" shortcut="k">
      <CommandMenuSearch />
      <CommandMenuList>
        <CommandMenuSection label="General">
          <CommandMenuItem>Open</CommandMenuItem>
          <CommandMenuItem>Save</CommandMenuItem>
        </CommandMenuSection>
      </CommandMenuList>
      <CommandMenuFooter>Press Command+K to open</CommandMenuFooter>
    </CommandMenu>
  )
}

Command

A command palette component for searchable command lists.

Disclosure

Expandable sections (accordion/collapsible) with trigger and panel.

On this page

Installation
Usage