motionsnack

Animated React sections that already feel finished.

Copy them into Next.js or add them with one command. Plain React and Tailwind, light and dark.

New sections, once a month

One short email when something new lands. No spam.

Library

  • Sections
  • Blocks
  • Components
  • Application UI
  • Templates

Popular

  • Hero
  • Gallery
  • Testimonials
  • Stats
  • Logos
  • FAQ

Resources

  • Installation
  • All components
  • All blocks
  • All sections
  • All application UI
  • Design system
  • Changelog
  • Pricing

Company

  • About
  • Contact
  • Terms
  • Privacy

Install

npx motionsnack add <name>Step-by-step guidehello@motionsnack.dev
Kuba Šťastný@kubastastnydev

© 2026 motionsnack. All rights reserved.

TermsPrivacy

motionsnack

motionsnack
DocsSectionsTemplatesWhat's newPricing
Get lifetime access
  1. Home
  2. Docs
  3. Components
  4. Dropdown
  5. Command Menu
ComponentsBlocksSectionsApplication UI
ComponentsBlocksSectionsApplication UI

Accordion

  • Spring Accordion

Alert

  • Glow Alert

Audio

  • Podcast PlayerNew
  • Voice NoteNew
  • Voice RecorderNew

Avatar

  • Avatar Stack

Badge

  • Pulse Badge

Breadcrumb

  • Slide Breadcrumb

Button

  • Chip ButtonNew
  • Glow Border Button
  • Glow ButtonNew
  • Plain ButtonNew

Calendar

  • Month Calendar

Checkbox

  • Checkbox CardsNew
  • Checkbox GroupNew
  • Chip CheckboxNew

Cropper

  • Image Cropper

Dialog

  • Spring Dialog

Dropdown

  • Command MenuNew
  • Stagger Dropdown
  • Switcher DropdownNew

File Upload

  • Drop Zone Upload

Input

  • Addon InputNew
  • Button InputNew
  • Copy InputNew
  • Date InputNew
  • Floating Label Input
  • Joined InputsNew
  • Notched Label InputNew
  • Number StepperNew
  • OTP InputNew
  • Password InputNew
  • Phone InputNew
  • Range InputNew
  • Search InputNew
  • Tag InputNew
  • Text FieldNew

Loader

  • Curtain LoaderNew
  • Greeting LoaderNew
  • Line LoaderNew
  • Meter LoaderNew
  • Split LoaderNew

Navigation Menu

  • Mobile Tab BarNew

Notification

  • Notification BellNew
  • Toast Stack

Pagination

  • Sliding Pagination

Popover

  • Spring Popover

Radio

  • Card Radio Group
  • Payment MethodNew
  • Radio GroupNew
  • Rating RadioNew

Select

  • ComboboxNew
  • Glide Select
  • Multi SelectNew
  • Rich SelectNew
  • Select FieldNew
  • Tree SelectNew

Sidebar

  • Icon RailNew

Slider

  • Glow Slider

Stepper

  • Progress Stepper

Switch

  • Billing SwitchNew
  • Switch RowNew
  • Toggle SwitchNew

Table

  • Sortable Table

Tabs

  • Sliding Tabs

Textarea

  • Auto Grow Textarea

Toggle

  • Icon ToggleNew
  • Theme ToggleNew
  • Toggle GroupNew

Tooltip

  • Follow Tooltip

Dropdown

Command Menu

New

A search field that opens a ⌘K command palette with grouped commands, shortcuts and nested pages.

npx motionsnack add command-menu

Customize

px
px
<CommandMenu />

Props

19 properties

PropertyTypeDefaultDescription
groups{ heading: string; items: { id: string; label: string; description?: string; icon?: string; shortcut?: string[]; keywords?: string[]; children?: Item[] }[] }[]Pages, Actions, Settings demoGroups of items. An item with children opens a nested page instead of running.
onSelect(item) => void-Called with the item the visitor runs.
openboolean-Open state (controlled).
defaultOpenbooleanfalseOpen state at first render (uncontrolled).
onOpenChange(open: boolean) => void-Called whenever the palette opens or closes.
querystring-Search text (controlled).
defaultQuerystring''Search text at first render (uncontrolled).
onQueryChange(query: string) => void-Called on every keystroke.
loadingbooleanfalseRemote results are loading: spinner after 500ms, list dimmed.
hotkeystring'mod+k' (from shortcut)Global key that toggles the palette; mod = ⌘ on Mac, Ctrl elsewhere.
classNamestring''Extra classes on the wrapper.
placeholderstring'Search or jump to…'Text in the trigger.
searchPlaceholderstring'Type a command or search…'Hint in the search box of the palette.
emptyTextstring'No results for "{query}"'Text shown when nothing matches. {query} is the typed text.
shortcutstring'K'Letter of the ⌘ / Ctrl shortcut that opens the palette. Empty turns it off and hides the hint.
showFooterbooleantrueShow the row of key hints at the bottom of the palette.
disabledbooleanfalseDisables the trigger and the shortcut.
heightnumber48Height of the trigger.
radiusnumber12Corner radius of the trigger.

About Command Menu

Command Menu gives a site or an app one place to jump anywhere and do anything. The trigger looks like the library's search field with a ⌘K hint, and the shortcut opens the palette from anywhere on the page: the page behind softly blurs and a panel comes in from a blur at the top of the screen. Commands sit in groups with small headings, each with an icon, an optional second line and its own keyboard shortcut, and they appear one after another as the palette opens. Typing narrows the list word by word and shows the matching letters in full contrast; a command with children opens a nested page in place, shown as a chip in the search row, and Backspace or Escape steps back. Arrow keys, Home, End and Enter drive it all, focus stays inside the dialog and returns to the trigger when it closes, and the page underneath does not scroll meanwhile.

What's included

  • ⌘K / Ctrl+K from anywhere, platform-aware hint
  • Panel and backdrop that blur in and out
  • Groups, icons, descriptions and shortcut keys
  • Word-by-word search with highlighted matches
  • Nested pages with a breadcrumb chip and Backspace to go back
  • Full keyboard control, focus trap and focus return
  • Light and dark look
Type
Animated React dropdown component
Library
Components · Dropdown
Stack
Next.js, React, Tailwind CSS
Added
2026-11-23
Install
npx motionsnack add command-menu