chore(docs): use green tag type

This commit is contained in:
Eric Y Liu 2021-03-13 14:47:17 -08:00
commit 74ae2da5a2
2 changed files with 2 additions and 2 deletions

View file

@ -108,7 +108,7 @@
<Tag size="sm" type="red">Deprecated</Tag>
{/if}
{#if new_components.includes(child.title)}
<Tag size="sm" type="blue">New</Tag>
<Tag size="sm" type="green">New</Tag>
{/if}
</SideNavMenuItem>
{/each}

View file

@ -2,7 +2,7 @@
import Preview from "../../components/Preview.svelte";
</script>
This utility component wraps the [Window.localStorage API](https://developer.mozilla.org/en-US/docs/Web/API/Window/localStorage) to persist values by key. This is useful for non-persistent data (e.g., dark mode toggle).
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