Skip to main content
Version: Next

Command API

import { Command } from '@editora/ui-react';

Props​

PropTypeDescription
emptyTextstring
onQueryChange(value: string) => void
onSelect(detail: CommandSelectDetail) => void
placeholderstring

Also accepts the standard HTML and React props of the element it renders (className, style, id, aria-*, data-*, event handlers).

Command.Item props​

PropTypeDescription
keywordsstring
labelstring
valuestring

Also accepts the standard HTML and React props of the element it renders (className, style, id, aria-*, data-*, event handlers).

Element: <ui-command>​

Command renders the ui-command custom element from @editora/ui-core, which can also be used without React.

Attributes: empty-text, placeholder

Events: query-change, select