refactor: resolve svelte-check hints

This commit is contained in:
Eric Liu 2022-03-12 13:02:29 -08:00
commit 1fee16d441
5 changed files with 7 additions and 17 deletions

View file

@ -1,17 +1,11 @@
<script lang="ts">
import { ToggleSmall, CodeSnippet } from "../types";
import { CodeSnippet } from "../types";
let toggled = false;
const code = Array.from({ length: 20 }, (_, i) => i + 1).join("\n");
</script>
<ToggleSmall
style="margin-bottom: var(--cds-spacing-05)"
labelText="Show code snippets"
bind:toggled
/>
{#if toggled}
<h5>"Show more" will not render</h5>
<br />