-
-
Notifications
You must be signed in to change notification settings - Fork 280
Expand file tree
/
Copy path_Simple.svelte
More file actions
23 lines (19 loc) · 618 Bytes
/
_Simple.svelte
File metadata and controls
23 lines (19 loc) · 618 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<div>
<List class="demo-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>
</div>
<pre class="status">Clicked: {clicked}</pre>
<script lang="ts">
import List, { Item, Separator, Text } from '@smui/list';
let clicked = $state('nothing yet');
</script>
<style>
* :global(.demo-list) {
max-width: 300px;
}
</style>