-
-
Notifications
You must be signed in to change notification settings - Fork 280
Expand file tree
/
Copy path+page.svelte
More file actions
49 lines (44 loc) · 1.14 KB
/
+page.svelte
File metadata and controls
49 lines (44 loc) · 1.14 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
45
46
47
48
49
<AutoAdjust {bottomAppBar}>
<h5>Fixed</h5>
<LoremIpsum />
<img
alt="Page content placeholder"
src="/page-content.jpg"
style="display: block; max-width: 100%; height: auto; margin: 1em auto;"
/>
</AutoAdjust>
<BottomAppBar bind:this={bottomAppBar} variant="fixed">
<Section>
<IconButton>
<Icon class="material-icons">menu</Icon>
</IconButton>
</Section>
<Section>
<IconButton aria-label="Search">
<Icon class="material-icons">search</Icon>
</IconButton>
<IconButton aria-label="More">
<Icon class="material-icons">more_vert</Icon>
</IconButton>
</Section>
</BottomAppBar>
<script lang="ts">
import BottomAppBar, {
Section,
AutoAdjust,
} from '@smui-extra/bottom-app-bar';
import IconButton, { Icon } from '@smui/icon-button';
import LoremIpsum from '$lib/LoremIpsum.svelte';
let bottomAppBar: BottomAppBar | null = $state(null);
</script>
<style>
/* Hide everything above this component. */
:global(app),
:global(body),
:global(html) {
display: block !important;
height: auto !important;
width: auto !important;
position: static !important;
}
</style>