UNPKG

648 BTypeScriptView Raw
1import * as React from 'react';
2import { ListContextValue } from '../useList/ListContext';
3import { SelectOption } from '../useOption';
4import { CompoundComponentContextValue } from '../useCompound';
5export type SelectProviderValue<Value> = CompoundComponentContextValue<Value, SelectOption<Value>> & ListContextValue<Value>;
6export interface SelectProviderProps<Value> {
7 value: SelectProviderValue<Value>;
8 children: React.ReactNode;
9}
10/**
11 * Sets up the contexts for the underlying Option components.
12 *
13 * @ignore - do not document.
14 */
15export declare function SelectProvider<Value>(props: SelectProviderProps<Value>): React.JSX.Element;