UNPKG

@bothub-chat/ui

Version:

Bothub UI Components

10 lines (9 loc) 527 B
import React from 'react'; export interface SelectFieldContextValue { selectRef: React.RefObject<HTMLElement | null>; handleSelectClick: React.MouseEventHandler<HTMLElement>; } export declare const SelectFieldContext: React.Context<SelectFieldContextValue>; export declare const SelectFieldProvider: React.FC<SelectFieldContextValue & React.PropsWithChildren>; export declare const SelectFieldConsumer: React.Consumer<SelectFieldContextValue>; export declare const useSelectFieldContext: () => SelectFieldContextValue;