Something went wrong. Try again.
[READ-ONLY] Mirror of https://github.com/flo-bit/ui-kit. 🦊 fox ui, svelte 5 and tailwind 4 flo-bit.dev/ui-kit
Something went wrong. Try again.
12345678910111213141516171819202122232425<script lang="ts"> import type { WithElementRef } from 'bits-ui'; import type { HTMLBaseAttributes } from 'svelte/elements'; import { cn } from '../../utils';
let { ref = $bindable(null), class: className, level = 2, children, ...restProps }: WithElementRef<HTMLBaseAttributes> & { level?: 1 | 2 | 3 | 4 | 5 | 6; } = $props();</script>
<svelte:element this={'h' + level} bind:this={ref} class={cn('text-base-900 dark:text-base-50 text-base font-semibold sm:text-lg', className)} {...restProps}> {@render children?.()}</svelte:element>