mirror of
https://github.com/pocket-id/pocket-id.git
synced 2025-12-20 17:25:43 +03:00
28 lines
746 B
Svelte
28 lines
746 B
Svelte
<script lang="ts">
|
|
import { Calendar as CalendarPrimitive } from "bits-ui";
|
|
import ChevronRight from "lucide-svelte/icons/chevron-right";
|
|
import { buttonVariants } from "$lib/components/ui/button/index.js";
|
|
import { cn } from "$lib/utils/style.js";
|
|
|
|
type $$Props = CalendarPrimitive.NextButtonProps;
|
|
type $$Events = CalendarPrimitive.NextButtonEvents;
|
|
|
|
let className: $$Props["class"] = undefined;
|
|
export { className as class };
|
|
</script>
|
|
|
|
<CalendarPrimitive.NextButton
|
|
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}>
|
|
<ChevronRight class="h-4 w-4" />
|
|
</slot>
|
|
</CalendarPrimitive.NextButton>
|