mirror of
https://github.com/gpxstudio/gpx.studio.git
synced 2026-04-24 12:25:54 +00:00
28 lines
737 B
Svelte
28 lines
737 B
Svelte
|
|
<script lang="ts">
|
||
|
|
import { Calendar as CalendarPrimitive } from "bits-ui";
|
||
|
|
import ChevronLeft from "lucide-svelte/icons/chevron-left";
|
||
|
|
import { buttonVariants } from "$lib/components/ui/button/index.js";
|
||
|
|
import { cn } from "$lib/utils.js";
|
||
|
|
|
||
|
|
type $$Props = CalendarPrimitive.PrevButtonProps;
|
||
|
|
type $$Events = CalendarPrimitive.PrevButtonEvents;
|
||
|
|
|
||
|
|
let className: $$Props["class"] = undefined;
|
||
|
|
export { className as class };
|
||
|
|
</script>
|
||
|
|
|
||
|
|
<CalendarPrimitive.PrevButton
|
||
|
|
on:click
|
||
|
|
class={cn(
|
||
|
|
buttonVariants({ variant: "outline" }),
|
||
|
|
"h-7 w-7 bg-transparent p-0 opacity-50 hover:opacity-100",
|
||
|
|
className
|
||
|
|
)}
|
||
|
|
{...$$restProps}
|
||
|
|
let:builder
|
||
|
|
>
|
||
|
|
<slot {builder}>
|
||
|
|
<ChevronLeft class="h-4 w-4" />
|
||
|
|
</slot>
|
||
|
|
</CalendarPrimitive.PrevButton>
|