mirror of
https://github.com/faiztyanirh/clqms-shadcn-v1.git
synced 2026-04-23 09:39:27 +07:00
29 lines
680 B
Svelte
29 lines
680 B
Svelte
<script>
|
|
import { Calendar as CalendarPrimitive } from "bits-ui";
|
|
import ChevronRightIcon from "@lucide/svelte/icons/chevron-right";
|
|
import { buttonVariants } from "$lib/components/ui/button/index.js";
|
|
import { cn } from "$lib/utils.js";
|
|
|
|
let {
|
|
ref = $bindable(null),
|
|
class: className,
|
|
children,
|
|
variant = "ghost",
|
|
...restProps
|
|
} = $props();
|
|
</script>
|
|
|
|
{#snippet Fallback()}
|
|
<ChevronRightIcon class="size-4" />
|
|
{/snippet}
|
|
|
|
<CalendarPrimitive.NextButton
|
|
bind:ref
|
|
class={cn(
|
|
buttonVariants({ variant }),
|
|
"size-(--cell-size) bg-transparent p-0 select-none disabled:opacity-50 rtl:rotate-180",
|
|
className
|
|
)}
|
|
children={children || Fallback}
|
|
{...restProps}
|
|
/> |