Loading
Loading
Loading
mobile footer

Build the Interaction Layer Your Website is Missing.

Browse All EffectsBrowse All EffectsBrowse All EffectsUpgrade to ProUpgrade to ProUpgrade to Pro

70+ effects free, forever. No credit card.

© 2026 Hyperiux. All Rights Reserved.

AI Component CatalogueHey AI, Learn About Us
Platform

Vault

  • Documentation
  • Pricing
  • Blog
  • Community
  • NPM
  • MCP

Categories

  • All Effects
  • WebGL
  • Text
  • Backgrounds
  • Buttons
  • Carousels
  • Scroll
  • Components
  • Navigation
  • Cursor
  • Transitions
  • Loaders

Documents

  • Introduction
  • Installation
  • CLI
  • Dependencies
  • License

Legal

  • License Agreement
  • Terms of Service
  • Privacy Policy
  • Refund Policy
Socials
  • Twitter / X
  • LinkedIn
  • GitHub
  • Instagram
Contact Us
  • hello@hyperiux.com
New effects, in your inbox

Every new drop, plus the occasional behind-the-scenes build. No spam. Unsubscribe anytime.

All Effects
Featured ComponentsText AnimationsAnimated BackgroundsAnimated ButtonsCarousel EffectsScroll EffectsCreative ComponentsNavigationsCursor EffectsTransitionsLoadersWebGL & 3D Effects
Templates
IntroductionInstallationCLIDependenciesLicense
PricingBlogGithubNPMMCP Doc
Loading
Home/effects/Command Component

Command Component

An animated command palette with keyboard-driven search, morphing dropdowns, sliding result highlights, and responsive transitions between commands.

@base-ui/reactclass-variance-authoritycmdklucide-reactmotiontailwind-merge
DemoDemoDemo

Tune the Real Props

Overview

Command puts app actions behind a searchable interface. An inline field can morph into a wider results dropdown, and a ⌘K palette scales in over a dimmed or blurred backdrop. Results stagger in, a shared highlight glides between them, and labels can roll as users move through the list.

Use it when an app has enough actions or destinations that users benefit from finding them directly, such as dashboards, CMSs, project tools, and developer apps. Typing, navigation, and execution must stay instant.


Theme and Interaction Customisation

The component always renders both surfaces: an inline search field with a results dropdown and a ⌘K palette. Dropdown settings cover a morph, slide, or fade animation and the morph width; palette settings cover start scale, content fade, entry delay, and a clear, dimmed, or blurred backdrop. Shared settings cover roundness from none to 3xl, slide, fill-from-top, or no item highlight in muted or primary colour, rolling labels, an animated search icon, staggered results, duration, and bounce. Seven themes (default, caffeine, claude, ghibli, spotify, valorant, vscode) come in light or dark mode.


Example Production Use Case

A project management app can put a search field in its header that morphs into a results dropdown, plus a ⌘K palette. Typing “create task” and pressing Enter opens the task form without touching the sidebar.

A CMS can let editors jump to any article or settings page from the palette, keeping them in flow while managing large content libraries.

A developer tool can expose build, deploy, and log commands through the palette, giving power users a keyboard-only workflow alongside the visible menus.


Best Used For

  • SaaS dashboards.
  • Productivity tools.
  • Developer applications.
  • Design and creative tools.
  • Content management systems.
  • Project management platforms.
  • Administrative interfaces.
  • Feature-rich apps with experienced users.

Not For

Apps with only a handful of obvious actions are better served by a toolbar or clear navigation.

It should never be the only way to find essential features, and it doesn’t replace full search with filters and previews.

Destructive commands like deleting records or changing permissions still need their usual confirmation steps.


Performance Budget

Keep typing and keyboard navigation instant, use efficient matching or debounced server search for large indexes, and never delay input for animations. Cancel outdated stagger sequences when queries change, scope global shortcut listeners, and stop animations when closed.


Accessibility and Mobile

Use a labelled search input with combobox and listbox semantics, arrow keys, Enter, and Escape, and don’t rely on the highlight alone to show the active result. A modal palette needs a dialog label, trapped focus, and focus returned on close. On mobile, show a visible search trigger, fit the keyboard and viewport, and keep results easy to tap. With reduced motion, remove morphing, scaling, and stagger.


Common Mistakes

  • Making the palette the only way to navigate.
  • Running commands on highlight instead of selection.
  • Shortcuts that clash with typing or the browser.
  • Applying palette settings to the dropdown or vice versa.
  • Letting result stagger slow down navigation.
  • Leaving a stale highlighted result after filtering.
  • Overusing spring bounce.
  • Losing focus when the palette closes.
  • Assuming search runs application logic.
  • Closing silently when a command fails.
  • Ignoring reduced-motion preferences.

Changelog

The search icon closes the open search, and picking a result closes the list.
Initial release

API Reference

PropTypeDefaultDescription
themestringclaudeColour palette, popup included. With Item highlight color set to Primary, the highlighted result takes its primary colour.
modestringdarkLight or dark version of the palette. Starts dark.
dropdownAnimationstringmorphHow the results list opens: morphs out of the input, slides down, or fades in.
morphWidthnumber1.25How wide the list is while it morphs, as a multiple of the input width. Needs Dropdown animation set to Morph.
delaynumber0.1Wait before the results list starts opening, in seconds.
fadeContentbooleantrueFades the list contents in as it opens instead of showing them at once.
startScalenumber0.75Size the list starts from when it opens, as a fraction of full size.
backdropstringblurWhat sits behind the open menu: nothing, a dim layer, or a blur.
roundedstringmdCorner radius of the input and results list.
itemHighlightstringslideHow the highlight moves between results: slides, fills from the top, or none.
itemHighlightColorstringprimaryColour of the result highlight: soft grey or the theme's primary colour.
animateIconbooleantrueAnimates each result's icon when its row is highlighted.
durationnumber0.35How long the open and close animation takes, in seconds.
bouncenumber0.15How much the list overshoots and settles when it opens. 0 is no bounce.
rollingTextbooleanfalseResult labels roll to a second copy on hover.
staggerItemsbooleantrueResults appear one after another instead of all at once.
staggernumber0.03Delay between each result appearing, in seconds. Needs Stagger items on.

Questions, Answered.

What is Command?

Command is an animated React component for searchable access to app commands and destinations, with an inline dropdown, a command palette, keyboard navigation, and configurable animations.

Does Command include both a dropdown and a palette?

Yes. The ready-made component always shows both: an inline search field whose results open in a dropdown beneath it, and an Open palette button that opens the palette dialog. There is no mode prop to switch one off; to use only one, build with the named CommandSearch or CommandDialog exports.

Can Command open with a keyboard shortcut?

Yes. ⌘K (or Ctrl+K) toggles the palette, and / focuses the inline search when you aren't already typing in a field. Integrate shortcuts carefully with browser and app key handling.

What keyboard navigation does Command support?

Arrow Up and Down move through results, Enter runs a command, and Escape closes the surface.

Does Command perform actions automatically?

No. The application connects each command to its navigation or action handler, including validation, permissions, and error handling.

What is the difference between Command and Dropdown Menu?

Dropdown Menu suits a small set of related actions. Command adds search and keyboard discovery for larger command collections.

View MoreView More

Request a Custom Animation

Need a custom effect? Tell us what to create.

Related Effects

Explore All EffectsExplore All EffectsExplore All Effects
Skeleton Component
@base-ui/reactclass-variance-authoritylucide-react

Skeleton Component

Components

Bubble Component
Pro
@base-ui/reactclass-variance-authoritylucide-react

Bubble Component

Components

Theme Switch Component
Pro
@base-ui/reactclass-variance-authoritygsap

Theme Switch Component

Components