Files
pocket-id/frontend/src/lib/components/ui/calendar/calendar-heading.svelte

20 lines
448 B
Svelte
Raw Normal View History

<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';
type $$Props = CalendarPrimitive.HeadingProps;
2025-05-07 16:43:24 +02:00
let className: $$Props['class'] = undefined;
export { className as class };
</script>
<CalendarPrimitive.Heading
let:headingValue
2025-05-07 16:43:24 +02:00
class={cn('text-sm font-medium', className)}
{...$$restProps}
>
<slot {headingValue}>
{headingValue}
</slot>
</CalendarPrimitive.Heading>