On this page
useLocalStorage
Category | State |
---|---|
Export Size | 2.01 kB |
Last Changed | 2 weeks ago |
Related | useStorage |
Reactive LocalStorage.
Usage
Please refer to useStorage
Type Declarations
export declare function useLocalStorage(
key: string,
initialValue: MaybeRefOrGetter<string>,
options?: UseStorageOptions<string>
): RemovableRef<string>
export declare function useLocalStorage(
key: string,
initialValue: MaybeRefOrGetter<boolean>,
options?: UseStorageOptions<boolean>
): RemovableRef<boolean>
export declare function useLocalStorage(
key: string,
initialValue: MaybeRefOrGetter<number>,
options?: UseStorageOptions<number>
): RemovableRef<number>
export declare function useLocalStorage<T>(
key: string,
initialValue: MaybeRefOrGetter<T>,
options?: UseStorageOptions<T>
): RemovableRef<T>
export declare function useLocalStorage<T = unknown>(
key: string,
initialValue: MaybeRefOrGetter<null>,
options?: UseStorageOptions<T>
): RemovableRef<T>
Source
© 2019-present Anthony Fu
Licensed under the MIT License.
https://vueuse.org/core/useLocalStorage/