codepunter-react-wheelpicker
Version:
A customizable React wheel picker bringing iOS-like functionality to the web, maintained by CodePunter.
20 lines (19 loc) • 573 B
TypeScript
import React from "react";
import "./index.css";
type WheelPickerProps = {
height?: number;
animation?: "flat" | "wheel";
data: string[];
parentHeight?: number;
fontSize?: number;
defaultSelection?: number;
updateSelection: (index: number) => void;
scrollerId: string;
selectedBackgroundColor?: string;
selectedTextColor?: string;
unselectedTextColor?: string;
selectedItemStyles?: React.CSSProperties;
disableTextHighlight?: boolean;
};
declare const WheelPicker: React.FC<WheelPickerProps>;
export default WheelPicker;