Files
gpx.studio/website/src/lib/components/ui/calendar/calendar-cell.svelte

20 lines
512 B
Svelte
Raw Normal View History

2024-06-13 17:36:43 +02:00
<script lang="ts">
import { Calendar as CalendarPrimitive } from "bits-ui";
import { cn } from "$lib/utils.js";
2025-06-08 16:32:41 +02:00
let {
ref = $bindable(null),
class: className,
...restProps
}: CalendarPrimitive.CellProps = $props();
2024-06-13 17:36:43 +02:00
</script>
<CalendarPrimitive.Cell
2025-06-08 16:32:41 +02:00
bind:ref
2024-06-13 17:36:43 +02:00
class={cn(
2025-06-21 21:07:36 +02:00
"size-(--cell-size) relative p-0 text-center text-sm focus-within:z-20 [&:first-child[data-selected]_[data-bits-day]]:rounded-l-md [&:last-child[data-selected]_[data-bits-day]]:rounded-r-md",
2024-06-13 17:36:43 +02:00
className
)}
2025-06-08 16:32:41 +02:00
{...restProps}
/>