UNPKG

@renderlesskit/react

Version:

Collection of headless components/hooks that are accessible, composable, customizable from low level to build your own UI & Design System powered by Reakit

14 lines (13 loc) 415 B
/** * React hook used in the number input to spin it's * value on long press of the spin buttons * * @param increment the function to increment * @param decrement the function to decrement */ export declare function useSpinner(increment: Function, decrement: Function): { up: () => void; down: () => void; stop: () => void; }; export declare type useSpinnerReturn = ReturnType<typeof useSpinner>;