blob: 04ff382bc2aafc4b17de93e42876a86958312c73 (
plain) (
blame)
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
|
<script lang="ts">
export let selected: boolean;
export let position: 'top' | 'right' | 'left' | 'bottom';
export let centered = false;
</script>
{#if selected}
<div
class:items-center={centered}
class="{position} pointer-events-none absolute z-[1] flex bg-emerald-700/95"
>
<span class="icon-base icon-[material-symbols--check] text-[2rem]" />
</div>
{/if}
<style lang="postcss">
.top,
.bottom {
width: 100%;
}
.left,
.right {
height: 100%;
}
.bottom {
bottom: 0;
}
.right {
right: 0;
}
</style>
|