-
-
Notifications
You must be signed in to change notification settings - Fork 279
Expand file tree
/
Copy path_Static.svelte
More file actions
26 lines (23 loc) · 649 Bytes
/
_Static.svelte
File metadata and controls
26 lines (23 loc) · 649 Bytes
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
<MenuSurface static>
<List>
<Item onSMUIAction={() => (clicked = 'Cut')}>
<Text>Cut</Text>
</Item>
<Item onSMUIAction={() => (clicked = 'Copy')}>
<Text>Copy</Text>
</Item>
<Item onSMUIAction={() => (clicked = 'Paste')}>
<Text>Paste</Text>
</Item>
<Separator />
<Item onSMUIAction={() => (clicked = 'Delete')}>
<Text>Delete</Text>
</Item>
</List>
</MenuSurface>
<pre class="status">Clicked: {clicked}</pre>
<script lang="ts">
import MenuSurface from '@smui/menu-surface';
import List, { Item, Separator, Text } from '@smui/list';
let clicked = $state('nothing yet');
</script>