mirror of
https://github.com/bartvdbraak/omnidash.git
synced 2025-04-26 15:01:20 +00:00
21 lines
516 B
Svelte
21 lines
516 B
Svelte
<script lang="ts">
|
|
import { cn } from '$lib/utils';
|
|
import type { HTMLAttributes } from 'svelte/elements';
|
|
import type { HeadingLevel } from '.';
|
|
|
|
type $$Props = HTMLAttributes<HTMLHeadingElement> & {
|
|
level?: HeadingLevel;
|
|
};
|
|
|
|
let className: $$Props['class'] = undefined;
|
|
export let level: $$Props['level'] = 'h5';
|
|
export { className as class };
|
|
</script>
|
|
|
|
<svelte:element
|
|
this={level}
|
|
class={cn('mb-1 font-medium leading-none tracking-tight', className)}
|
|
{...$$restProps}
|
|
>
|
|
<slot />
|
|
</svelte:element>
|