Files
wdi-dashboard/node_modules/@chakra-ui/number-input/dist/use-spinner.d.ts
2024-08-16 15:06:52 +05:30

16 lines
386 B
TypeScript

/**
* React hook used in the number input to spin its
* value on long press of the spin buttons
*
* @param increment the function to increment
* @param decrement the function to decrement
*/
declare function useSpinner(increment: Function, decrement: Function): {
up: () => void;
down: () => void;
stop: () => void;
isSpinning: boolean;
};
export { useSpinner };