mirror of
https://github.com/pocket-id/pocket-id.git
synced 2026-10-10 19:59:04 +02:00
28 lines
637 B
Svelte
28 lines
637 B
Svelte
<script lang="ts">
|
|
import type { HTMLAttributes } from 'svelte/elements';
|
|
import type { WithElementRef } from '#lib/utils/style.js';
|
|
import { cn } from '#lib/utils/style.js';
|
|
import MinusIcon from '@lucide/svelte/icons/minus';
|
|
|
|
let {
|
|
ref = $bindable(null),
|
|
class: className,
|
|
children,
|
|
...restProps
|
|
}: WithElementRef<HTMLAttributes<HTMLDivElement>> = $props();
|
|
</script>
|
|
|
|
<div
|
|
bind:this={ref}
|
|
data-slot="input-otp-separator"
|
|
role="separator"
|
|
class={cn("flex items-center [&_svg:not([class*='size-'])]:size-4", className)}
|
|
{...restProps}
|
|
>
|
|
{#if children}
|
|
{@render children?.()}
|
|
{:else}
|
|
<MinusIcon />
|
|
{/if}
|
|
</div>
|