mirror of
https://github.com/BradNut/boredgame
synced 2025-09-08 17:40:22 +00:00
19 lines
429 B
Svelte
19 lines
429 B
Svelte
<script lang="ts">
|
|
import type { HTMLAttributes } from "svelte/elements";
|
|
import type { WithElementRef } from "bits-ui";
|
|
import Dot from "lucide-svelte/icons/dot";
|
|
|
|
let {
|
|
ref = $bindable(null),
|
|
children,
|
|
...restProps
|
|
}: WithElementRef<HTMLAttributes<HTMLDivElement>> = $props();
|
|
</script>
|
|
|
|
<div bind:this={ref} role="separator" {...restProps}>
|
|
{#if children}
|
|
{@render children?.()}
|
|
{:else}
|
|
<Dot />
|
|
{/if}
|
|
</div>
|