-
-
Notifications
You must be signed in to change notification settings - Fork 282
Expand file tree
/
Copy path_Sizes.svelte
More file actions
30 lines (27 loc) · 1.05 KB
/
_Sizes.svelte
File metadata and controls
30 lines (27 loc) · 1.05 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
<div style="display: flex; align-items: center;">
<IconButton class="material-icons" onclick={() => clicked++} size="normal">
<Icon tag="svg" viewBox="0 0 24 24">
<path fill="currentColor" d={mdiWrench} />
</Icon>
</IconButton> (normal = standard icon button size)
</div>
<div style="display: flex; align-items: center;">
<IconButton class="material-icons" onclick={() => clicked++} size="mini">
<Icon tag="svg" viewBox="0 0 24 24">
<path fill="currentColor" d={mdiWrench} />
</Icon>
</IconButton> (mini = same size as mini FAB)
</div>
<div style="display: flex; align-items: center;">
<IconButton class="material-icons" onclick={() => clicked++} size="button">
<Icon tag="svg" viewBox="0 0 24 24">
<path fill="currentColor" d={mdiWrench} />
</Icon>
</IconButton> (button = same height as button)
</div>
<pre class="status">Clicked: {clicked}</pre>
<script lang="ts">
import { mdiWrench } from '@mdi/js';
import IconButton, { Icon } from '@smui/icon-button';
let clicked = $state(0);
</script>