-
-
Notifications
You must be signed in to change notification settings - Fork 282
Expand file tree
/
Copy path_NoIcons.svelte
More file actions
29 lines (24 loc) · 626 Bytes
/
_NoIcons.svelte
File metadata and controls
29 lines (24 loc) · 626 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
<div>
<FormField>
<Switch bind:checked={checked1} icons={false} />
{#snippet label()}
Fields of grain.
{/snippet}
</FormField>
</div>
<pre class="status">Checked: {checked1}</pre>
<div style="margin-top: 1em;">
<FormField>
<Switch bind:checked={checked2} color="secondary" icons={false} />
{#snippet label()}
Fields of grain.
{/snippet}
</FormField>
</div>
<pre class="status">Checked: {checked2}</pre>
<script lang="ts">
import Switch from '@smui/switch';
import FormField from '@smui/form-field';
let checked1 = $state(false);
let checked2 = $state(false);
</script>