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
    placeholder?: string
    selectOnEnter?: boolean

    Auto-select first result on Enter. Default true.

    ugm: UGM