mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-18 11:36:36 +00:00
docs(local-storage): add instructions [ci skip]
This commit is contained in:
parent
20577a0132
commit
881f69d617
2 changed files with 3 additions and 1 deletions
|
@ -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" />
|
|
@ -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>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue