UNPKG

@procore/core-react

Version:
6 lines (5 loc) 912 B
import React from 'react'; import type { SuperSelectApi, SuperSelectConfig } from './SuperSelect.types'; export declare function useSuperSelect({ block, components: customComponents, defaultValue, disabled, draggable, emptyMessage, selectAllEnabled, error, footer, getOptionGroup, getOptionIsBatch, getOptionIsDisabled, getOptionLabel, getOptionIsPartiallySelected, getOptionIsSelected, getOptionValue, onScrollBottom, onOpenChange, header, loading, multiple, onChange, onManualSort, onUnselectAll, onSelectAll, options: sourceOptions, placeholder, preset, presetProps, search, selectionStyle, setOptionGroup, sort, tabIndex, value: value_, overlayMatchesTriggerWidth, 'aria-label': ariaLabel, 'aria-labelledby': ariaLabelledBy, }: SuperSelectConfig): SuperSelectApi; export declare const SuperSelectContext: React.Context<SuperSelectApi | null>; export declare function useSuperSelectContext(): SuperSelectApi;