-
-
Notifications
You must be signed in to change notification settings - Fork 282
/
Copy path_Colored.svelte
55 lines (53 loc) · 1.01 KB
/
_Colored.svelte
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
<div>
<FormField>
<Switch class="my-colored-switch" />
{#snippet label()}
Custom Color
{/snippet}
</FormField>
</div>
<div>
<FormField>
<Switch class="my-colored-switch" disabled />
{#snippet label()}
Disabled
{/snippet}
</FormField>
</div>
<div>
<FormField>
<Switch class="my-colored-switch" disabled checked />
{#snippet label()}
Disabled, Checked
{/snippet}
</FormField>
</div>
<br /><br />
<div>
<FormField>
<Switch class="my-fully-colored-switch" />
{#snippet label()}
Fully Colored
{/snippet}
</FormField>
</div>
<div>
<FormField>
<Switch class="my-fully-colored-switch" disabled />
{#snippet label()}
Disabled
{/snippet}
</FormField>
</div>
<div>
<FormField>
<Switch class="my-fully-colored-switch" disabled checked />
{#snippet label()}
Disabled, Checked
{/snippet}
</FormField>
</div>
<script lang="ts">
import Switch from '@smui/switch';
import FormField from '@smui/form-field';
</script>