Command

Compare Command for React and React Native in VLLNT UI 0.4.0. Explore source, dependencies and native capabilities. Native is source-only; npm publication is pending.

Supported platforms:WebNative
Report a bug

What it is and when to use

Command is a command palette built on the cmdk library. It combines a search input, grouped result lists, items, shortcuts, and an empty state, filtering entries as the user types and moving the highlight with arrow keys. Use it for a searchable action menu or a ⌘K launcher that jumps between pages, runs commands, or finds records. CommandDialog wraps the same palette in a Radix dialog so it opens as a centered modal overlay.

Overlay

Preview

Switch between light and dark to inspect the embedded Storybook preview.

Command palette with search, groups, and keyboard navigation. Part of the overlay family in VLLNT UI, it ships as a machine-readable registry entry — copy the source directly into your app with the shadcn CLI and own it, no runtime dependency on a component library.

Platform comparison

PlatformDependenciesCapabilities
Web@vllnt/ui@^0.3.0Browser rendering, DOM events, and ARIA semantics
Native@vllnt/ui-native, react-nativeNative-adapted interaction and accessibility

Installation

Add Command to your project with the shadcn CLI. The source lands in your codebase, ready to adapt:

pnpm dlx shadcn@latest add https://ui.vllnt.com/r/command.json

Source

Stories

Explore every variant and state in the interactive Storybook:

FAQ

What is Command?
Command is a command-palette component for React, built on the cmdk library. It pairs a search input with grouped, filterable result lists, items, shortcuts, and an empty state.
How do I add Command?
Run pnpm dlx shadcn@latest add https://ui.vllnt.com/r/command.json to copy the source into your project, then import Command and its parts from your ui directory.
How do I make Command open as a ⌘K modal?
Use the CommandDialog export, which renders the same palette inside a Radix dialog. Toggle its open prop from a keyboard shortcut to get a centered ⌘K overlay.