UNPKG

@codeurs/react-simple-wheel-picker

Version:

- This package is simple and flexible wheel picker for React - This package move like same as native applications picker - This package support accessibility

30 lines (29 loc) 755 B
import React from "react"; export interface PickerData { id: string; value: string | number; } export interface WheelPickerProps { data: PickerData[]; selectedID: string; onChange: (data: PickerData) => void; height: number; itemHeight: number; idName?: string; titleID?: string; titleText?: string; required?: boolean; width?: number; color?: string; activeColor?: string; fontSize?: number; backgroundColor?: string; shadowColor?: string; focusColor?: string; } export interface WheelPickerRef { focus: () => void; blur: () => void; } declare const _default: React.ForwardRefExoticComponent<WheelPickerProps & React.RefAttributes<WheelPickerRef>>; export default _default;