Plugins

Covers Engine Plugin SDK 2.0.0 · Interface Plugin SDK 0.2.0

ComboboxSearch

Searches a fixed option list using DARTWIC's standard host-owned combobox.

Import

import { ComboboxSearch } from "@dartwic/interface-sdk/ui";

Declaration

export const ComboboxSearch: HostComponent<ComboboxSearchProps>;

ComboboxSearchProps

Props for the standard host-owned searchable list selector.

export interface ComboboxSearchProps extends HostComponentProps {
    items: ComboboxSearchItem[];
    initialValue?: string;
    placeholder?: string;
    commandSearchPlaceholder?: string;
    commandSearchEmptyPlaceholder?: string;
    overrideValue?: HostNode;
    onSelect?: (value: string) => void;
    unSelectable?: boolean;
    popoverContentClassName?: string;
}
PropTypeRequirementDescription
itemsComboboxSearchItem[]Required
initialValuestringOptional
placeholderstringOptional
commandSearchPlaceholderstringOptional
commandSearchEmptyPlaceholderstringOptional
overrideValueHostNodeOptional
onSelect(value: string) => voidOptional
unSelectablebooleanOptional
popoverContentClassNamestringOptional
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.