docs: replace h3 with h2 headings

This commit is contained in:
Eric Liu 2022-08-17 07:09:36 -07:00
commit 0bc43d9204
70 changed files with 552 additions and 559 deletions

View file

@ -4,13 +4,13 @@
This utility component wraps the [Window.localStorage API](https://developer.mozilla.org/en-US/docs/Web/API/Window/localStorage) and is useful for persisting ephemeral data (e.g., color theme) at the browser level.
### Reactive example
## Reactive example
In the example below, toggle the switch and reload the page. The updated theme should be persisted locally.
<FileSource src="/framed/LocalStorage/LocalStorage" />
### Clear item, clear all
## Clear item, clear all
Use the `bind:this` directive to access the `clearItem` and `clearAll` methods.