Files
sexy/packages/frontend/src/lib/components/ui/select/select-scroll-down-button.svelte

21 lines
630 B
Svelte
Raw Normal View History

2025-10-25 22:04:41 +02:00
<script lang="ts">
import ChevronDownIcon from "@lucide/svelte/icons/chevron-down";
import { Select as SelectPrimitive } from "bits-ui";
import { cn, type WithoutChildrenOrChild } from "$lib/utils.js";
2025-10-25 22:04:41 +02:00
let {
ref = $bindable(null),
class: className,
...restProps
}: WithoutChildrenOrChild<SelectPrimitive.ScrollDownButtonProps> = $props();
2025-10-25 22:04:41 +02:00
</script>
<SelectPrimitive.ScrollDownButton
bind:ref
data-slot="select-scroll-down-button"
class={cn("flex cursor-default items-center justify-center py-1", className)}
{...restProps}
2025-10-25 22:04:41 +02:00
>
<ChevronDownIcon class="size-4" />
2025-10-25 22:04:41 +02:00
</SelectPrimitive.ScrollDownButton>