g3-toolkit API Reference
    Preparing search index...

    Interface SearchBarProps

    interface SearchBarProps {
        className?: string;
        onPick?: (id: string) => void;
        onSearchChange?: (result: SearchResult) => void;
        placeholder?: string;
        selectOnEnter?: boolean;
        ugm: UGM;
    }
    Index

    Properties

    className?: string
    onPick?: (id: string) => void

    Fires when the user EXPLICITLY picks a result (dropdown click or Enter). 12.9: camera moves belong here, not on onSearchChange; centering the first match on every keystroke made the view jump while typing.

    onSearchChange?: (result: SearchResult) => void

    Fires on every keystroke with the match set (for a host that dims or filters on it). OPTIONAL (issue #18): the common case is the bar driving the selection store on an explicit pick, which it does regardless of this prop, so callers no longer pass a no-op to satisfy it. GraphToolbar's internal SearchBar relies on exactly this default.

    placeholder?: string
    selectOnEnter?: boolean

    Auto-select first result on Enter. Default true.

    ugm: UGM