-
-
Notifications
You must be signed in to change notification settings - Fork 280
Expand file tree
/
Copy path_Sheet.svelte
More file actions
44 lines (39 loc) · 1.09 KB
/
Copy path_Sheet.svelte
File metadata and controls
44 lines (39 loc) · 1.09 KB
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
<Dialog bind:open sheet aria-describedby="sheet-content">
<CloseTooltipWrapper>
<IconButton action="close">
<Icon class="material-icons">close</Icon>
</IconButton>
</CloseTooltipWrapper>
<Content id="sheet-content">
<LoremIpsum />
</Content>
</Dialog>
<Dialog
bind:open={openNoPadding}
noContentPadding
sheet
aria-describedby="sheet-no-padding-content"
>
<CloseTooltipWrapper>
<IconButton action="close">
<Icon class="material-icons">close</Icon>
</IconButton>
</CloseTooltipWrapper>
<Content id="sheet-no-padding-content">
<LoremIpsum />
</Content>
</Dialog>
<Button onclick={() => (open = true)}>
<Label>Open Dialog</Label>
</Button>
<Button onclick={() => (openNoPadding = true)}>
<Label>Open No Padding Dialog</Label>
</Button>
<script lang="ts">
import Dialog, { CloseTooltipWrapper, Content } from '@smui/dialog';
import IconButton, { Icon } from '@smui/icon-button';
import Button, { Label } from '@smui/button';
import LoremIpsum from '$lib/LoremIpsum.svelte';
let open = $state(false);
let openNoPadding = $state(false);
</script>