UNPKG

@acrool/react-picker

Version:

This is a react method to quickly combine buttons with Picker

21 lines (20 loc) 672 B
import React from 'react'; import { EVertical, IPosition } from './types'; interface IContextProps<T = any> { hide: () => void; show: () => void; toggle: () => void; isVisible: boolean; inputFocus: () => void; inputBlur: () => void; isInputFocus: boolean; value?: T; importantPosition?: IPosition; vertical: EVertical; setVertical: (vertical: EVertical) => void; onChange: (value: T) => void; } export declare const PickerProviderContext: React.Context<IContextProps<any>>; export declare const PickerProviderConsumer: React.Consumer<IContextProps<any>>; export declare const usePicker: () => IContextProps<any>; export {};