mirror of
https://github.com/pocket-id/pocket-id.git
synced 2026-07-15 21:48:13 +03:00
16 lines
410 B
Svelte
16 lines
410 B
Svelte
<script lang="ts">
|
|
import { type WithElementRef, cn } from '$lib/utils/style.js';
|
|
import type { HTMLAttributes } from 'svelte/elements';
|
|
|
|
let {
|
|
ref = $bindable(null),
|
|
class: className,
|
|
children,
|
|
...restProps
|
|
}: WithElementRef<HTMLAttributes<HTMLElement>> = $props();
|
|
</script>
|
|
|
|
<div {...restProps} bind:this={ref} class={cn('flex w-full flex-col gap-4', className)}>
|
|
{@render children?.()}
|
|
</div>
|