mirror of
https://github.com/gpxstudio/gpx.studio.git
synced 2026-04-28 22:35:55 +00:00
22 lines
616 B
Svelte
22 lines
616 B
Svelte
|
|
<script lang="ts">
|
||
|
|
import { Calendar as CalendarPrimitive } from "bits-ui";
|
||
|
|
import { cn } from "$lib/utils.js";
|
||
|
|
|
||
|
|
type $$Props = CalendarPrimitive.CellProps;
|
||
|
|
|
||
|
|
export let date: $$Props["date"];
|
||
|
|
let className: $$Props["class"] = undefined;
|
||
|
|
export { className as class };
|
||
|
|
</script>
|
||
|
|
|
||
|
|
<CalendarPrimitive.Cell
|
||
|
|
{date}
|
||
|
|
class={cn(
|
||
|
|
"relative h-9 w-9 p-0 text-center text-sm focus-within:relative focus-within:z-20 [&:has([data-selected])]:rounded-md [&:has([data-selected])]:bg-accent [&:has([data-selected][data-outside-month])]:bg-accent/50",
|
||
|
|
className
|
||
|
|
)}
|
||
|
|
{...$$restProps}
|
||
|
|
>
|
||
|
|
<slot />
|
||
|
|
</CalendarPrimitive.Cell>
|