mirror of
https://github.com/t8y2/dbx.git
synced 2026-10-30 16:21:39 +00:00
33 lines
902 B
Vue
33 lines
902 B
Vue
<script setup lang="ts">
|
|
import type { SelectScrollUpButtonProps } from "reka-ui";
|
|
|
|
import type { HTMLAttributes } from "vue";
|
|
import { reactiveOmit } from "@vueuse/core";
|
|
import { ChevronUpIcon } from "lucide-vue-next";
|
|
import { SelectScrollUpButton, useForwardProps } from "reka-ui";
|
|
import { cn } from "@/lib/utils";
|
|
|
|
const props = defineProps<SelectScrollUpButtonProps & { class?: HTMLAttributes["class"] }>();
|
|
|
|
const delegatedProps = reactiveOmit(props, "class");
|
|
|
|
const forwardedProps = useForwardProps(delegatedProps);
|
|
</script>
|
|
|
|
<template>
|
|
<SelectScrollUpButton
|
|
data-slot="select-scroll-up-button"
|
|
v-bind="forwardedProps"
|
|
:class="
|
|
cn(
|
|
'bg-popover z-10 flex cursor-default items-center justify-center py-1 [&_svg:not([class*=size-])]:size-4',
|
|
props.class,
|
|
)
|
|
"
|
|
>
|
|
<slot>
|
|
<ChevronUpIcon />
|
|
</slot>
|
|
</SelectScrollUpButton>
|
|
</template>
|