diff --git a/docs/src/components/index.svelte b/docs/src/components/index.svelte index e2db714..2d0978b 100644 --- a/docs/src/components/index.svelte +++ b/docs/src/components/index.svelte @@ -9,6 +9,7 @@ Column, Content, Theme, + SelectSkeleton, } from "carbon-components-svelte"; import FocusKey from "svelte-focus-key"; import fuzzy from "fuzzy"; @@ -27,9 +28,7 @@ $: filteredModuleNames = pictogramNames.filter((name) => match(value.trim().replace(/\s+/g, ""), name) ); - $: if (typeof document !== "undefined") { - document.documentElement.setAttribute("theme", theme); - } + $: mounted = typeof document !== "undefined"; $: code = ` @@ -56,18 +55,22 @@ - + {#if mounted} + + {:else} + + {/if}