24 lines
648 B
Svelte
24 lines
648 B
Svelte
<script lang="ts">
|
|
import {
|
|
type WithoutChildrenOrChild,
|
|
cn,
|
|
} from '$shared/shadcn/utils/shadcn-utils.js';
|
|
import ChevronUpIcon from '@lucide/svelte/icons/chevron-up';
|
|
import { Select as SelectPrimitive } from 'bits-ui';
|
|
|
|
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>
|