useLocalStorage
Reactive LocalStorage.
Usage
Please refer to useStorage
Type Declarations
export declare function useLocalStorage(
key: string,
initialValue: MaybeRef<string>,
options?: StorageOptions<string>
): RemovableRef<string>
export declare function useLocalStorage(
key: string,
initialValue: MaybeRef<boolean>,
options?: StorageOptions<boolean>
): RemovableRef<boolean>
export declare function useLocalStorage(
key: string,
initialValue: MaybeRef<number>,
options?: StorageOptions<number>
): RemovableRef<number>
export declare function useLocalStorage<T>(
key: string,
initialValue: MaybeRef<T>,
options?: StorageOptions<T>
): RemovableRef<T>
export declare function useLocalStorage<T = unknown>(
key: string,
initialValue: MaybeRef<null>,
options?: StorageOptions<T>
): RemovableRef<T>
export declare function useLocalStorage(
key: string,
initialValue: MaybeRef<string>,
options?: StorageOptions<string>
): RemovableRef<string>
export declare function useLocalStorage(
key: string,
initialValue: MaybeRef<boolean>,
options?: StorageOptions<boolean>
): RemovableRef<boolean>
export declare function useLocalStorage(
key: string,
initialValue: MaybeRef<number>,
options?: StorageOptions<number>
): RemovableRef<number>
export declare function useLocalStorage<T>(
key: string,
initialValue: MaybeRef<T>,
options?: StorageOptions<T>
): RemovableRef<T>
export declare function useLocalStorage<T = unknown>(
key: string,
initialValue: MaybeRef<null>,
options?: StorageOptions<T>
): RemovableRef<T>
Source
Contributors
Anthony Fu
Antério Vieira
Shinigami
Pig Fang
Alex Kozack