@helpwave/hightide
Version:
helpwave's component and theming library
16 lines (13 loc) • 469 B
text/typescript
import * as react_jsx_runtime from 'react/jsx-runtime';
type ScrollPickerProps<T> = {
options: T[];
mapping: (value: T) => string;
selected?: T;
onChange?: (value: T) => void;
disabled?: boolean;
};
/**
* A component for picking an option by scrolling
*/
declare const ScrollPicker: <T>({ options, mapping, selected, onChange, disabled, }: ScrollPickerProps<T>) => react_jsx_runtime.JSX.Element;
export { ScrollPicker, type ScrollPickerProps };