-
-
Notifications
You must be signed in to change notification settings - Fork 285
/
_Colors.svelte
51 lines (43 loc) · 1.37 KB
/
_Colors.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
<svelte:options runes={false} />
<Snackbar bind:this={snackbarSuccess} class="demo-success">
<Label
>That thing you tried to do actually worked, if you can believe it!</Label
>
<Actions>
<IconButton class="material-icons" title="Dismiss">close</IconButton>
</Actions>
</Snackbar>
<Snackbar bind:this={snackbarWarning} class="demo-warning">
<Label
>Ok, it looks like that thing you tried to do might not have work.</Label
>
<Actions>
<IconButton class="material-icons" title="Dismiss">close</IconButton>
</Actions>
</Snackbar>
<Snackbar bind:this={snackbarError} class="demo-error">
<Label
>That thing you tried to do didn't work. Honestly, I'm not sure why you even
tried.</Label
>
<Actions>
<IconButton class="material-icons" title="Dismiss">close</IconButton>
</Actions>
</Snackbar>
<Button onclick={() => snackbarSuccess.open()}>
<Label>Open Success Snackbar</Label>
</Button>
<Button onclick={() => snackbarWarning.open()}>
<Label>Open Warning Snackbar</Label>
</Button>
<Button onclick={() => snackbarError.open()}>
<Label>Open Error Snackbar</Label>
</Button>
<script lang="ts">
import Snackbar, { Label, Actions } from '@smui/snackbar';
import IconButton from '@smui/icon-button';
import Button from '@smui/button';
let snackbarSuccess: Snackbar;
let snackbarWarning: Snackbar;
let snackbarError: Snackbar;
</script>