Files
trevstack/client/src/lib/ui/range-calendar/range-calendar-next-button.svelte
2025-05-13 17:19:12 -04:00

29 lines
687 B
Svelte

<script lang="ts">
import { buttonVariants } from '$lib/ui/button/index.js';
import ChevronRight from '@lucide/svelte/icons/chevron-right';
import { cn } from '$lib/utils.js';
import { RangeCalendar as RangeCalendarPrimitive } from 'bits-ui';
let {
ref = $bindable(null),
class: className,
children,
...restProps
}: RangeCalendarPrimitive.NextButtonProps = $props();
</script>
{#snippet Fallback()}
<ChevronRight class="size-4" />
{/snippet}
<RangeCalendarPrimitive.NextButton
bind:ref
class={cn(
buttonVariants({ variant: 'outline' }),
'size-7 bg-transparent p-0 opacity-50 hover:opacity-100',
className
)}
children={children || Fallback}
{...restProps}
/>