UNPKG

@mantine/hooks

Version:

A collection of 50+ hooks for state and UI management

10 lines (9 loc) 288 B
export declare function useCounter(initialValue?: number, options?: Partial<{ min: number; max: number; }>): readonly [number, { readonly increment: () => void; readonly decrement: () => void; readonly set: (value: number) => void; readonly reset: () => void; }];