useLocalStorage
Reactive LocalStorage.
Usage
Please refer to useStorage
Type Declarations
export declare function useLocalStorage(
key: string,
defaultValue: string,
options?: StorageOptions
): Ref<string>
export declare function useLocalStorage(
key: string,
defaultValue: boolean,
options?: StorageOptions
): Ref<boolean>
export declare function useLocalStorage(
key: string,
defaultValue: number,
options?: StorageOptions
): Ref<number>
export declare function useLocalStorage<T>(
key: string,
defaultValue: T,
options?: StorageOptions
): Ref<T>
export declare function useLocalStorage<T = unknown>(
key: string,
defaultValue: null,
options?: StorageOptions
): Ref<T>