Files
gpx.studio/website/src/lib/components/ui/select/select-scroll-up-button.svelte

21 lines
600 B
Svelte
Raw Normal View History

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