mirror of
https://github.com/BradNut/boredgame
synced 2025-09-08 17:40:22 +00:00
19 lines
557 B
Svelte
19 lines
557 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/utils/ui.js";
|
|
|
|
let {
|
|
ref = $bindable(null),
|
|
class: className,
|
|
...restProps
|
|
}: WithoutChildrenOrChild<SelectPrimitive.ScrollUpButtonProps> = $props();
|
|
</script>
|
|
|
|
<SelectPrimitive.ScrollUpButton
|
|
bind:ref
|
|
class={cn("flex cursor-default items-center justify-center py-1", className)}
|
|
{...restProps}
|
|
>
|
|
<ChevronUp class="size-4" />
|
|
</SelectPrimitive.ScrollUpButton>
|