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