Files
emaui/node_modules/@mantine/hooks/lib/use-counter/use-counter.d.ts
2026-05-29 15:23:46 +03:00

13 lines
410 B
TypeScript

export interface UseCounterOptions {
min?: number;
max?: number;
}
export interface UseCounterHandlers {
increment: () => void;
decrement: () => void;
set: (value: number) => void;
reset: () => void;
}
export type UseCounterReturnValue = [number, UseCounterHandlers];
export declare function useCounter(initialValue?: number, options?: UseCounterOptions): [number, UseCounterHandlers];