Search the docs

Search Keyframery's docs

Keyframery
Components

Command menu animation

Animate the shadcn/ui Command menu: it opens with the dialog's cut, growing into place instead of popping in, with no changes to your component.

with <Cuts />

Command menu

Search for a command

What it fixes

CommandDialog is a dialog, so it gets the same rack focus: it grows out of the button you pressed, or from the centre when you open it with a shortcut. The search on this site runs on it. Press ⌘K to try it.

Install

npx shadcn add command

Choose a cut

The command menu follows the dialog menu:

<Cuts dialog="punch-in" />

Prop

Type

A keyboard shortcut counts as a press only when a focused element receives it. A global ⌘K listener has no opener, so the menu opens from the centre.

On this page