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;
}
PropTypeRequirementDescription
valuestringOptional
onValueChange(value: string) => voidOptional
placeholderstringOptional
disabledbooleanOptional
classNamestringOptionalAdditional Tailwind or host CSS classes.
childrenHostNodeOptionalChild content rendered by the host component.
idstringOptionalOptional DOM identifier.
styleRecord<string, unknown>OptionalInline style values passed to the host component.