flbxcup/resources/js/components/ui/input-otp/input-otp-separator.svelte
2025-06-23 23:12:40 +02:00

19 lines
477 B
Svelte

<script lang="ts">
import type { HTMLAttributes } from "svelte/elements";
import type { WithElementRef } from "@/lib/utils.js";
import DotIcon from "@lucide/svelte/icons/dot";
let {
ref = $bindable(null),
children,
...restProps
}: WithElementRef<HTMLAttributes<HTMLDivElement>> = $props();
</script>
<div bind:this={ref} data-slot="input-otp-separator" role="separator" {...restProps}>
{#if children}
{@render children?.()}
{:else}
<DotIcon />
{/if}
</div>