UNPKG

@tabula/ui-selector

Version:

Selector allow users to choose a single option from a collapsible list of options when space is limited

13 lines (12 loc) 401 B
import { Item, ItemConfigGetter, OptionItem, TriggerRenderer } from '../Selector.types'; type OuterOptions = { itemConfig: Item; }; type InnerOptions<T> = { value: T; options: Array<OptionItem<T>>; itemConfigGetter: ItemConfigGetter<T>; }; type Options<T> = InnerOptions<T> | OuterOptions; export declare function useTriggerRenderer<T>(params: Options<T>): TriggerRenderer; export {};