fbla26/src/lib/components/ui/select/select-scroll-up-button.svelte
DragonDuck24 4ea6549ac7
All checks were successful
ci / docker_image (push) Successful in 2m55s
ci / deploy (push) Successful in 51s
Lots of dev
2026-02-03 00:23:43 -06:00

21 lines
600 B
Svelte

<script lang="ts">
import ChevronUpIcon from "@lucide/svelte/icons/chevron-up";
import { Select as SelectPrimitive } from "bits-ui";
import { cn, type WithoutChildrenOrChild } from "$lib/utils.js";
let {
ref = $bindable(null),
class: className,
...restProps
}: WithoutChildrenOrChild<SelectPrimitive.ScrollUpButtonProps> = $props();
</script>
<SelectPrimitive.ScrollUpButton
bind:ref
data-slot="select-scroll-up-button"
class={cn("flex cursor-default items-center justify-center py-1", className)}
{...restProps}
>
<ChevronUpIcon class="size-4" />
</SelectPrimitive.ScrollUpButton>