mui-extended
Version:
Extended UI Components built on Material UI
4 lines (3 loc) • 385 B
TypeScript
export declare const useStateWithWebStorage: <T>(webStorage: Storage, webStorageKey: string, initialValue: T) => [T, (value: T) => void, boolean];
export declare const useStateWithSessionStorage: <T>(key: string, initialValue: T) => [T, (value: T) => void, boolean];
export declare const useStateWithLocalStorage: <T>(key: string, initialValue: T) => [T, (value: T) => void, boolean];