Reactolith UI Getting Started Introduction Installation Usage Layout Aspect Ratio Card Resizable Scroll Area Separator Direction Provider Forms Button Button Group Calendar Checkbox Combobox Field Input Input Group Input OTP Label Native Select Radio Group Select Slider Switch Textarea Toggle Toggle Group Data Display Accordion Avatar Badge Carousel Chart Collapsible Item Kbd Table Feedback Alert Empty Progress Skeleton Sonner Spinner Overlay Alert Dialog Context Menu Dialog Dropdown Menu Hover Card Popover Sheet Tooltip Navigation Breadcrumb Command Menubar Navigation Menu Pagination Sidebar Tabs

Command

Fast, composable, unstyled command menu for React.

Preview

No results found. Calendar Search Settings

Usage

<ui-command class="rounded-lg border shadow-md max-w-md">
  <ui-command-input placeholder="Type a command or search..."></ui-command-input>
  <ui-command-list>
    <ui-command-empty>No results found.</ui-command-empty>
    <ui-command-group heading="Suggestions">
      <ui-command-item>Calendar</ui-command-item>
      <ui-command-item>Search</ui-command-item>
      <ui-command-item>Settings</ui-command-item>
    </ui-command-group>
  </ui-command-list>
</ui-command>

Sub-components

<ui-command> <ui-command-dialog> <ui-command-input> <ui-command-list> <ui-command-empty> <ui-command-group> <ui-command-item> <ui-command-separator> <ui-command-shortcut>

Props

<ui-command-input>

PropTypeDefaultDescription
placeholderstringInput placeholder text.

<ui-command-group>

PropTypeDefaultDescription
headingstringGroup heading text.

<ui-command-item> Custom wrapper

PropTypeDefaultDescription
valuestringThe value of the item.
hrefstringURL to navigate to. Renders as a link when set. (Custom prop)

All components also accept standard HTML attributes (class, id, style, data-*, aria-*, etc.) which are passed through to the underlying element.