Plugins
Covers Engine Plugin SDK 2.0.0 · Interface Plugin SDK 0.2.0
CommandInput
Command Input using the host's searchable commands and choices presentation.
Import
import { CommandInput } from "@dartwic/interface-sdk/ui";Declaration
export const CommandInput: HostComponent<CommandInputProps>;CommandInputProps
Search field inside a host command menu.
export interface CommandInputProps extends HostComponentProps {
value?: string;
onValueChange?: (value: string) => void;
placeholder?: string;
disabled?: boolean;
}| Prop | Type | Requirement | Description |
|---|---|---|---|
value | string | Optional | |
onValueChange | (value: string) => void | Optional | |
placeholder | string | Optional | |
disabled | boolean | Optional | |
className | string | Optional | Additional Tailwind or host CSS classes. |
children | HostNode | Optional | Child content rendered by the host component. |
id | string | Optional | Optional DOM identifier. |
style | Record<string, unknown> | Optional | Inline style values passed to the host component. |