# Command: HextaUI and shadcn/ui

> The HextaUI Command keeps the shadcn/ui names and theme tokens and installs with the same CLI. This page lists what differs, read from the source of both. The shadcn/ui side is its base-vega registry as of 2026-10-26.

Canonical: https://hextaui.com/compare/shadcn-ui/command
Last updated: 2026-10-27

## At a glance

| Measure | HextaUI | shadcn/ui |
| --- | --- | --- |
| Exported parts | 12 | 9 |
| Props the wrapper handles | 33 | 3 |
| Lines of source | 1179 | 210 |
| npm dependencies | `@base-ui/react@^1.8.0` `@tabler/icons-react` `cmdk@^1.1.1` `cn` | `cmdk` `cn` |
| Built from | `button` `hotkey` `motion` `spinner` `theme` | `dialog` `input-group` |

More source is not better on its own. Most of the extra lines in HextaUI handle states, motion and edge cases that you would otherwise write yourself.

## Parts

Only in HextaUI `CommandPage` `CommandLoading` `CommandFooter`

In both `Command` `CommandInput` `CommandList` `CommandEmpty` `CommandGroup` `CommandSeparator` `CommandItem` `CommandShortcut` `CommandDialog`

## Props HextaUI adds

Props the HextaUI wrapper handles itself that the shadcn/ui wrapper does not. Props passed straight through to Base UI or the underlying library are left out, because both versions accept them.

| Prop | What it does |
| --- | --- |
| `formatResults` Command | Text announced to screen readers after typing. |
| `highlight` Command | Highlights the matched letters in each item and dims the rest. |
| `rootTitle` Command | Announced when you leave the last page and return to the root. |
| `clearLabel` CommandInput | Accessible name of the clear button. |
| `backLabel` CommandInput | Accessible name of the page chip. |
| `minDuration` CommandLoading | Minimum milliseconds the spinner stays once shown. |
| `shortcut` CommandItem | A hotkey like "mod+shift+c". Shown on the item and runs it while focus is in the menu. |
| `page` CommandItem | Opens the CommandPage with this id instead of running. |
| `pageTitle` CommandItem | Title shown in the page chip. Defaults to the value. |
| `confirm` CommandItem | Blink the item briefly before running it, so the choice registers. |
| `hotkey` CommandShortcut | Formats a hotkey like "mod+k" for the current platform. Children override it. |
| `preserveSearch` CommandDialog | Keep the dialog mounted so the query, page and selection survive closing. The query is selected when it reopens. |

## The HextaUI version

Every state, the keyboard map and the API reference are on the [component page](https://hextaui.com/docs/command).

7 of its examples also have a page of their own.

## Switch one component

Run the add command with `--overwrite` to replace the shadcn/ui file in `@/components/ui`, then review the diff in git before you keep it. Imports stay the same, and components you don’t replace keep working.

```bash
npx shadcn@latest add https://hextaui.com/r/command.json --overwrite
```

- Every prop in the table above is an addition, so call sites written for shadcn/ui don’t pass it yet.
- Check any part or variant listed only for shadcn/ui before you switch, and map it to the closest HextaUI one.

## Other components compared

- [Accordion](https://hextaui.com/compare/shadcn-ui/accordion)
- [Alert](https://hextaui.com/compare/shadcn-ui/alert)
- [Alert dialog](https://hextaui.com/compare/shadcn-ui/alert-dialog)
- [Avatar](https://hextaui.com/compare/shadcn-ui/avatar)
- [Badge](https://hextaui.com/compare/shadcn-ui/badge)
- [Bubble](https://hextaui.com/compare/shadcn-ui/bubble)
- [Button](https://hextaui.com/compare/shadcn-ui/button)
- [Card](https://hextaui.com/compare/shadcn-ui/card)
- [Carousel](https://hextaui.com/compare/shadcn-ui/carousel)
- [Chart](https://hextaui.com/compare/shadcn-ui/chart)
- [Combobox](https://hextaui.com/compare/shadcn-ui/combobox)
- [Dialog](https://hextaui.com/compare/shadcn-ui/dialog)
- [Dropdown menu](https://hextaui.com/compare/shadcn-ui/dropdown-menu)
- [Empty](https://hextaui.com/compare/shadcn-ui/empty)
- [Field](https://hextaui.com/compare/shadcn-ui/field)
- [Hover card](https://hextaui.com/compare/shadcn-ui/hover-card)
- [Input](https://hextaui.com/compare/shadcn-ui/input)
- [Input group](https://hextaui.com/compare/shadcn-ui/input-group)
- [Input OTP](https://hextaui.com/compare/shadcn-ui/input-otp)
- [Item](https://hextaui.com/compare/shadcn-ui/item)
- [Kbd](https://hextaui.com/compare/shadcn-ui/kbd)
- [Message scroller](https://hextaui.com/compare/shadcn-ui/message-scroller)
- [Pagination](https://hextaui.com/compare/shadcn-ui/pagination)
- [Popover](https://hextaui.com/compare/shadcn-ui/popover)
- [Progress](https://hextaui.com/compare/shadcn-ui/progress)
- [Questionnaire](https://hextaui.com/compare/shadcn-ui/questionnaire)
- [Radio group](https://hextaui.com/compare/shadcn-ui/radio-group)
- [Scroll area](https://hextaui.com/compare/shadcn-ui/scroll-area)
- [Sheet](https://hextaui.com/compare/shadcn-ui/sheet)
- [Sidebar](https://hextaui.com/compare/shadcn-ui/sidebar)
- [Skeleton](https://hextaui.com/compare/shadcn-ui/skeleton)
- [Slider](https://hextaui.com/compare/shadcn-ui/slider)
- [Spinner](https://hextaui.com/compare/shadcn-ui/spinner)
- [Switch](https://hextaui.com/compare/shadcn-ui/switch)
- [Table](https://hextaui.com/compare/shadcn-ui/table)
- [Textarea](https://hextaui.com/compare/shadcn-ui/textarea)
- [Tooltip](https://hextaui.com/compare/shadcn-ui/tooltip)

## More comparisons

- [All comparisons](https://hextaui.com/compare)
- [HextaUI vs AI Elements](https://hextaui.com/compare/ai-elements)
- [HextaUI vs assistant-ui](https://hextaui.com/compare/assistant-ui)
- [HextaUI vs prompt-kit](https://hextaui.com/compare/prompt-kit)
- [shadcn AI chat templates](https://hextaui.com/compare/shadcn-ai-chat-templates)

## Related

- [Command](https://hextaui.com/docs/command) - A searchable list of actions, inline or as a ⌘K palette, with pages, shortcuts and highlighted matches.
- [Button](https://hextaui.com/docs/button) - Buttons in every variant and size, with a built-in loading, success and error flow that skips the spinner for fast requests.
- [Hotkey](https://hextaui.com/docs/hotkey) - Parse, label, announce and match keyboard shortcuts, with ⌘ on Apple platforms and Ctrl everywhere else.
- [Motion](https://hextaui.com/docs/motion) - The easing curves, durations and reduced-motion check every component animates with, plus hooks for size morphs and sliding highlights.
- [Spinner](https://hextaui.com/docs/spinner) - A loading indicator with Apple-style ticks or a breathing ring that can wait before showing and stay long enough not to flicker.
- [Alert dialog](https://hextaui.com/docs/alert-dialog) - A confirmation dialog for destructive or important actions that waits for async work, and becomes a bottom sheet on phones.
- [Context menu](https://hextaui.com/docs/context-menu) - A menu of actions on right click or long press, with submenus, checkbox and radio items, and hold feedback on touch.
