Files
Website/src/components/ui/select/select-scroll-up-button.svelte
T
Chaoscaot 413c84e293
SteamWar CI / Build (push) Successful in 1m53s
SteamWar CI / Deploy (push) Successful in 10s
Add pointer cursor styling to interactive UI primitives
- Update buttons, inputs, menus, tabs, sliders, and dialogs to show pointer cursors
- Keep disabled states unchanged
2026-05-19 10:19:23 +02:00

20 lines
566 B
Svelte

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