<script setup>
import { reactiveOmit } from "@vueuse/core";
import { Icon } from "@iconify/vue";
import { SelectScrollUpButton, useForwardProps } from "reka-ui";
import { cn } from "../../../utils/cn";
defineOptions({ name: "UiSelectScrollUpButton" });
const props = defineProps({
  asChild: { type: Boolean, required: false },
  as: { type: null, required: false },
  class: { type: [Boolean, null, String, Object, Array], required: false, skipCheck: true }
});
const delegatedProps = reactiveOmit(props, "class");
const forwardedProps = useForwardProps(delegatedProps);
</script>

<template>
  <SelectScrollUpButton
    data-slot="select-scroll-up-button"
    v-bind="forwardedProps"
    :class="cn('flex cursor-default items-center justify-center py-1', props.class)"
  >
    <slot>
      <Icon
        icon="lucide:chevron-up"
        class="size-4"
      />
    </slot>
  </SelectScrollUpButton>
</template>
