Build faster with Premium Chakra UI Components πŸ’Ž

Learn more
releaseΒ·

October 30, 2026

Introducing Command

TA

Tolulope Adebesin

@I_am_Lope

Today we're shipping Chakra UI v3.38, headlined by a new component: Command.

Every app ends up with a ⌘K menu sooner or later. Search across pages, jump to settings, run an action without touching the mouse. Command is that menu. Items are data, you type to filter them, and selecting one runs its action and closes the dialog.

Command was built by @kalisaNkevin and Sage (@segunadebayo). A big thank you to both of them!

What you get:

const command = useCommandCollection({ initialItems: commands })

<Command.Provider value={command}>
  <Command.Dialog>
    <Portal>
      <Command.DialogBackdrop />
      <Command.DialogContent>
        <Command.Root>{/* ... */}</Command.Root>
      </Command.DialogContent>
    </Portal>
  </Command.Dialog>
</Command.Provider>

Coming from cmdk? The docs have a side-by-side mapping of the parts.

Groups

Group related commands under a label so a long list stays scannable.

Nested pages

Give an item a parent and it moves to that item's page. Escape goes back a page, Backspace on an empty input goes up one, and going back restores the query you had.

const command = useCommandCollection({
  initialItems: [
    { label: "Change status...", value: "status" },
    { label: "Done", value: "status:done", parent: "status" },
  ],
  deepSearch: true,
})
Status
In progress
Priority
High
Assignee
OM
Olivia Martin
Project
Auth revamp
Labels
Bug

Shortcuts

S

Change status...

P

Change priority...

A

Assign to...

L

Add labels...

ShiftP

Move to project...

Ctrl.

Copy issue ID

CtrlShift,

Copy issue URL

Async results

Load items from a server as the user types. Command.Loading shows while the request is in flight, and loadMore pages through results as you scroll.

Hotkeys

Command doesn't bind a shortcut for you. Use the new useHotkeys hook to bind ⌘K and register the same items, so their shortcuts work even while the menu is closed. useFormatHotkey formats them per platform.

Try G then I, or C, with the menu closed

Render items as anchors with asChild. Click, middle-click, or Enter all work, and ⌘+Enter or Ctrl+Enter opens the link in a new tab.

There's a lot more in the Command docs: prefix search, tabs, input pages, recent items, footer actions, and virtualization for large lists.

KbdGroup

Shortcuts show up everywhere in a command menu, so Kbd got a small upgrade too. KbdGroup groups the keys of a shortcut, and its size and variant apply to every Kbd inside. Single keys like K now render square.

⌘KCtrl+Shift+P

New APIs

We updated our headless foundation to Ark UI 5.40.0, which brings a few APIs worth knowing about:

The codemod, rebuilt

The upgrade codemod moved from jscodeshift to ts-morph. The big win is that it now follows your imports across files:

Some changes need a human. Those get a // TODO(chakra-v3) comment in place, and a "Manual follow-ups" report at the end of the run tells you where to look.

npx @chakra-ui/codemod upgrade --dry-run

There's also list to see every transform, --transform to run only the ones you name, and --fail-on-warn for CI.

Bug fixes

This release also packs a deep round of fixes. A few you'll want to know about:

Thanks to our community contributors too: @dfedoryshchev fixed useMediaQuery ignoring changes to its queries, and @waterWang fixed NumberInput.Control overflowing into the label.

See the full changelog for the complete list.

Upgrading

npm install @chakra-ui/react@latest

This release is backward compatible, with two things to check:

Try Command out and tell us what you build in Discord or on Twitter.