mirror of
https://github.com/pocket-id/pocket-id.git
synced 2026-03-27 09:46:36 +00:00
29 lines
689 B
Svelte
29 lines
689 B
Svelte
<script lang="ts">
|
|
import { Calendar as CalendarPrimitive } from 'bits-ui';
|
|
import ChevronLeftIcon from '@lucide/svelte/icons/chevron-left';
|
|
import { buttonVariants } from '$lib/components/ui/button/index.js';
|
|
import { cn } from '$lib/utils/style.js';
|
|
|
|
let {
|
|
ref = $bindable(null),
|
|
class: className,
|
|
children,
|
|
...restProps
|
|
}: CalendarPrimitive.PrevButtonProps = $props();
|
|
</script>
|
|
|
|
{#snippet Fallback()}
|
|
<ChevronLeftIcon class="size-4" />
|
|
{/snippet}
|
|
|
|
<CalendarPrimitive.PrevButton
|
|
bind:ref
|
|
class={cn(
|
|
buttonVariants({ variant: 'outline' }),
|
|
'size-7 bg-transparent p-0 opacity-50 hover:opacity-100',
|
|
className
|
|
)}
|
|
children={children || Fallback}
|
|
{...restProps}
|
|
/>
|