Editing flow

Command API

Command provides a compact palette surface for search-heavy CMS and admin flows.

Preview

  • Go to PagesG P
  • New blog postN B
  • Project settingsP S

Import

import { Command, CommandEmpty, CommandInput, CommandItem, CommandList } from "@axonyx/react";

Props

PropTypeDefaultDescription
iconReactNodeundefinedOptional leading icon for CommandItem.
shortcutReactNodeundefinedOptional shortcut hint displayed on the right.
activebooleanfalseMarks the highlighted or selected command row.

CSS contract

.ax-command
.ax-command__input
.ax-command__list
.ax-command__item
.ax-command__item-main
.ax-command__icon
.ax-command__shortcut
.ax-command__empty