2025-05-18 13:18:46 +02:00
|
|
|
<script>
|
|
|
|
import { Pagination as PaginationPrimitive } from "bits-ui";
|
2025-05-19 15:00:16 +02:00
|
|
|
import ChevronLeft from "@lucide/svelte/icons/chevron-left";
|
2025-05-18 13:18:46 +02:00
|
|
|
import { buttonVariants } from "$lib/components/ui/button/index.js";
|
|
|
|
import { cn } from "$lib/utils.js";
|
|
|
|
|
|
|
|
let { ref = $bindable(null), class: className, children, ...restProps } = $props();
|
|
|
|
</script>
|
|
|
|
|
|
|
|
{#snippet Fallback()}
|
|
|
|
<ChevronLeft class="size-4" />
|
|
|
|
<span>Previous</span>
|
|
|
|
{/snippet}
|
|
|
|
|
|
|
|
<PaginationPrimitive.PrevButton
|
|
|
|
bind:ref
|
|
|
|
class={cn(
|
|
|
|
buttonVariants({
|
|
|
|
variant: "ghost",
|
|
|
|
class: "gap-1 pl-2.5",
|
|
|
|
}),
|
|
|
|
className,
|
|
|
|
)}
|
|
|
|
children={children || Fallback}
|
|
|
|
{...restProps}
|
|
|
|
/>
|