-
-
Notifications
You must be signed in to change notification settings - Fork 280
Expand file tree
/
Copy path_UseActionsComponent.svelte
More file actions
31 lines (28 loc) · 752 Bytes
/
_UseActionsComponent.svelte
File metadata and controls
31 lines (28 loc) · 752 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
27
28
29
30
31
<div class="target" use:useActions={use}>
<span style="user-select: none;">
{@render children?.()}
</span>
</div>
<script lang="ts">
import type { Snippet } from 'svelte';
import type { ActionArray } from '@smui/common/internal';
import { useActions } from '@smui/common/internal';
let { use = [], children }: { use: ActionArray; children?: Snippet } =
$props();
</script>
<style>
.target {
display: flex;
justify-content: center;
align-items: center;
border-radius: 1em;
position: relative;
text-align: center;
width: 120px;
height: 120px;
transform: translate3d(0, 0, 0);
z-index: 0;
background-color: var(--mdc-theme-primary);
color: var(--mdc-theme-on-primary);
}
</style>