platform-bible-react
    Preparing search index...

    Interface UseListboxProps

    Props for the useListbox hook

    interface UseListboxProps {
        onCharacterPress?: (char: string) => void;
        onFocusChange?: (option: ListboxOption) => void;
        onOptionSelect?: (option: ListboxOption) => void;
        options: ListboxOption[];
    }
    Index

    Properties

    onCharacterPress?: (char: string) => void

    Callback when a character key is pressed

    onFocusChange?: (option: ListboxOption) => void

    Callback when the focus changes to a different option

    onOptionSelect?: (option: ListboxOption) => void

    Callback to toggle the selection of an option

    options: ListboxOption[]

    Array of options for the listbox