Command API
import { Command } from '@editora/ui-react';
Props
| Prop | Type | Description |
|---|---|---|
emptyText | string | |
onQueryChange | (value: string) => void | |
onSelect | (detail: CommandSelectDetail) => void | |
placeholder | string |
Also accepts the standard HTML and React props of the element it renders (className, style, id, aria-*, data-*, event handlers).
Command.Item props
| Prop | Type | Description |
|---|---|---|
keywords | string | |
label | string | |
value | string |
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