mirror of
https://github.com/maxdorninger/MediaManager.git
synced 2026-04-17 23:23:25 +02:00
25 lines
529 B
Svelte
25 lines
529 B
Svelte
<script lang="ts">
|
|
import type { HTMLAttributes } from 'svelte/elements';
|
|
import type { WithElementRef } from 'bits-ui';
|
|
import { cn } from '$lib/utils.js';
|
|
|
|
let {
|
|
ref = $bindable(null),
|
|
class: className,
|
|
level = 5,
|
|
children,
|
|
...restProps
|
|
}: WithElementRef<HTMLAttributes<HTMLDivElement>> & {
|
|
level?: 1 | 2 | 3 | 4 | 5 | 6;
|
|
} = $props();
|
|
</script>
|
|
|
|
<div
|
|
bind:this={ref}
|
|
aria-level={level}
|
|
class={cn('mb-1 leading-none font-medium tracking-tight', className)}
|
|
{...restProps}
|
|
>
|
|
{@render children?.()}
|
|
</div>
|