UNPKG

@mantine/hooks

Version:

A collection of 50+ hooks for state and UI management

4 lines (3 loc) 308 B
import { StorageProperties } from './create-storage'; export declare function useLocalStorage<T = string>(props: StorageProperties<T>): [T, (val: T | ((prevState: T) => T)) => void, () => void]; export declare const readLocalStorageValue: <T>({ key, defaultValue, deserialize, }: StorageProperties<T>) => T;