ListboxContext

View Source

Signature

interface ListboxContext {
  activeValue: ListboxValue;
  highlight: (value: ListboxValue) => void;
  highlightSearchMatch: (text: string) => void;
  navigate: (direction: NavigationStrategy) => void;
  registerOption: (option: RegisteredOption) => void;
  scrollActiveOptionIntoView: () => void;
  select: (value: ListboxValue) => Promise<void>;
  value: ListboxValue;
}