UNPKG

488 BTypeScriptView Raw
1/**
2 * BaseSelect provide some parsed data into context.
3 * You can use this hooks to get them.
4 */
5import * as React from 'react';
6import type { BaseSelectProps } from '../BaseSelect';
7export interface BaseSelectContextProps extends BaseSelectProps {
8 triggerOpen: boolean;
9 multiple: boolean;
10 toggleOpen: (open?: boolean) => void;
11}
12export declare const BaseSelectContext: React.Context<BaseSelectContextProps>;
13export default function useBaseProps(): BaseSelectContextProps;