Files
dotter/resources/js/components/ui/select/SelectScrollUpButton.svelte
salam e687b4437b
linter / quality (push) Canceled after 0s
tests / ci (8.3) (push) Canceled after 0s
tests / ci (8.4) (push) Canceled after 0s
tests / ci (8.5) (push) Canceled after 0s
first commit
2026-10-06 18:53:03 +02:00

22 lines
609 B
Svelte

<script lang="ts">
import ChevronUpIcon from 'lucide-svelte/icons/chevron-up';
import { Select as SelectPrimitive } from 'bits-ui';
import { cn } from '@/lib/utils';
import type { ComponentProps } from 'svelte';
let {
ref = $bindable(null),
class: className,
...restProps
}: ComponentProps<typeof SelectPrimitive.ScrollUpButton> = $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>