mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-18 11:36:36 +00:00
chore(docs): use green tag type
This commit is contained in:
parent
5c8c7233df
commit
74ae2da5a2
2 changed files with 2 additions and 2 deletions
|
@ -108,7 +108,7 @@
|
||||||
<Tag size="sm" type="red">Deprecated</Tag>
|
<Tag size="sm" type="red">Deprecated</Tag>
|
||||||
{/if}
|
{/if}
|
||||||
{#if new_components.includes(child.title)}
|
{#if new_components.includes(child.title)}
|
||||||
<Tag size="sm" type="blue">New</Tag>
|
<Tag size="sm" type="green">New</Tag>
|
||||||
{/if}
|
{/if}
|
||||||
</SideNavMenuItem>
|
</SideNavMenuItem>
|
||||||
{/each}
|
{/each}
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
import Preview from "../../components/Preview.svelte";
|
import Preview from "../../components/Preview.svelte";
|
||||||
</script>
|
</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
|
### Reactive example
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue