2025-03-11 14:16:42 -05:00
|
|
|
<script lang="ts">
|
2025-05-07 16:43:24 +02:00
|
|
|
import { Calendar as CalendarPrimitive } from 'bits-ui';
|
|
|
|
|
import { cn } from '$lib/utils/style.js';
|
2025-03-11 14:16:42 -05:00
|
|
|
|
|
|
|
|
type $$Props = CalendarPrimitive.HeadingProps;
|
|
|
|
|
|
2025-05-07 16:43:24 +02:00
|
|
|
let className: $$Props['class'] = undefined;
|
2025-03-11 14:16:42 -05:00
|
|
|
export { className as class };
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
<CalendarPrimitive.Heading
|
|
|
|
|
let:headingValue
|
2025-05-07 16:43:24 +02:00
|
|
|
class={cn('text-sm font-medium', className)}
|
2025-03-11 14:16:42 -05:00
|
|
|
{...$$restProps}
|
|
|
|
|
>
|
|
|
|
|
<slot {headingValue}>
|
|
|
|
|
{headingValue}
|
|
|
|
|
</slot>
|
|
|
|
|
</CalendarPrimitive.Heading>
|