@mantine/hooks
Version:
A collection of 50+ hooks for state and UI management
4 lines (3 loc) • 344 B
TypeScript
import { UseStorageOptions } from '../use-local-storage/create-storage';
export declare function useSessionStorage<T = string>(props: UseStorageOptions<T>): import("../use-local-storage/create-storage").UseStorageReturnValue<T>;
export declare const readSessionStorageValue: <T>({ key, defaultValue, deserialize, }: UseStorageOptions<T>) => T;