docs(local-storage): add instructions [ci skip]

This commit is contained in:
Eric Y Liu 2021-07-09 12:19:40 -07:00
commit 881f69d617
2 changed files with 3 additions and 1 deletions

View file

@ -18,4 +18,6 @@ Invoking `clearItem` will remove the persisted key value from the browser's loca
Invoking `clearAll` will remove all key values.
In the following example, toggle the switch and reload the page. Then, click the "Clear storage" button. Refresh the page; the theme should be reset to the untoggled state.
<FileSource src="/framed/LocalStorage/LocalStorageClear" />

View file

@ -14,4 +14,4 @@
<br />
<br />
<Button size="small" on:click="{storage.clearAll}">Clear local storage</Button>
<Button size="small" on:click="{storage.clearAll}">Clear storage</Button>