Measured entry

shadcn-command

inputunclassified

A client-side React command menu built as source you copy into the app, not a packaged widget. It wraps cmdk with Tailwind classes and a local class-merging helper, uses Lucide for search, and includes an optional dialog composition backed by the shadcn dialog component and Radix primitives.

Specimen
Harness screenshot of shadcn-command at 375 pixels wide
Harness screenshot at 375 pixels wide. No horizontal overflow recorded.
Harness screenshot of shadcn-command at 768 pixels wide
Harness screenshot at 768 pixels wide. No horizontal overflow recorded.
Harness screenshot of shadcn-command at 1440 pixels wide
Harness screenshot at 1440 pixels wide. No horizontal overflow recorded.

Measured

Every value below was written by the harness on the run that produced the frames above. None of it is derived from the prose.

Harness measurements recorded for shadcn-command
BuildOK
MountOK
Console errors0
Uncaught page errors0
Horizontal overflowclean at 375, 768, 1440
Axe critical1
Axe serious0
Axe moderate0
Axe minor0
Gzip marginal48.3 KB (113.8 KB build, 65.5 KB baseline)
Bare modeFAIL
Provider requiredNO
Demo usedwritten from the component source API

What the harness recorded

BARE BUILD

✗ Build failed in 1.41s
error during build:
[vite]: Rollup failed to resolve import "lucide-react" from "<sandbox>re-6a6e9091ae63/src/cut/components/ui/command.tsx".

Verdict

A practical command-menu foundation that builds, mounts, and stays within its container, including outside a full shadcn scaffold. Do not ship the demo unchanged: the critical ARIA finding needs investigation and correction first.

Use it if

  • You need a searchable command palette or compact action picker with grouped results and keyboard selection.
  • Your app already uses Tailwind theme tokens and is comfortable owning copied component source.
  • You want cmdk behavior with shadcn styling and an optional modal presentation.

Skip it if

  • You need an accessibility-clean result without investigating and correcting the reported ARIA child relationship.
  • You want a dependency-free input or a native select for a short, fixed choice list.
  • Your design system does not use Tailwind utilities and you do not want to translate the styling and theme tokens.

Install

Installation record for shadcn-command
Declared dependenciescmdk, radix-ui, clsx, tailwind-merge
Missing on installnone
Bare installfails once the shadcn-style helpers are removed, so it needs that setup
Providerno provider required in the harness

In a non-shadcn project, add cmdk, Lucide React, Tailwind, the class-merging helper and matching theme tokens. If you use CommandDialog, also bring in the local dialog component and its Radix dependency, then replace the source aliases with paths your project resolves.

Source and credit

This page is a review, not a copy. The component source lives with its author and this site does not republish it. Read the license before you use anything.

Author repository

github.com/shadcn-ui/ui
License
MIT
Record published
2026-08-16

Alternatives

Other published entries for the input pattern, ordered by what they measured: mounts first, then clean axe scans, then bare-mode passes, then the smaller bundle.