Skip to content

Command palette

Search-and-run: filterable, grouped, keyboard-driven. Inline or in a dialog opened with ⌘K.

CSS + mian.js JSON Markdown Registry item

Inline

Suggestions
Calendar
Search emoji
Launch
Settings
Profile ⌘P
Billing ⌘B
Settings ⌘S

Installation

Everything ships in one stylesheet and one small script. There is nothing to import per component.

<link rel="stylesheet" href="https://mian.ro/dist/mian.css">
<script src="https://mian.ro/dist/mian.js" defer></script>

Prefer to own the files? /r/command.json is a registry item with this component's CSS and example markup, ready to copy into your project with any tool that reads the open registry-item format.

Class reference

Class / attributeDescription
mn-commandContainer.
mn-command-input · mn-command-list · mn-command-group · mn-command-heading · mn-command-item · mn-command-empty · mn-command-footerParts.
dialog.mn-modal.mn-command-dialog[data-mn-hotkey="k"]Opens on ⌘K / Ctrl+K.
data-keywordsExtra search terms for an item.

Accessibility

  • The input is a combobox controlling a listbox; aria-activedescendant follows the highlight so focus stays in the input. Emits cancelable mn:select.
Choose a noodle

Minimal

Flat

Pixel

Linear

Thin

Glass

Textured

Bold

Elegant

Rounded

On this page