mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-04-20 06:20:11 +00:00
Backport of #8205 to `cloud/1.37` Automatically created by backport workflow. ┆Issue is synchronized with this [Notion page](https://www.notion.so/PR-8234-backport-cloud-1-37-feat-ui-add-shadcn-vue-Select-components-2f06d73d365081eb9437d7ef7487ca05) by [Unito](https://www.unito.io) Co-authored-by: Alexander Brown <drjkl@comfy.org> Co-authored-by: Amp <amp@ampcode.com> Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
28 lines
662 B
Vue
28 lines
662 B
Vue
<script setup lang="ts">
|
|
import type { SelectScrollUpButtonProps } from 'reka-ui'
|
|
import { SelectScrollUpButton } from 'reka-ui'
|
|
import type { HTMLAttributes } from 'vue'
|
|
|
|
import { cn } from '@/utils/tailwindUtil'
|
|
|
|
const { class: className, ...restProps } = defineProps<
|
|
SelectScrollUpButtonProps & { class?: HTMLAttributes['class'] }
|
|
>()
|
|
</script>
|
|
|
|
<template>
|
|
<SelectScrollUpButton
|
|
v-bind="restProps"
|
|
:class="
|
|
cn(
|
|
'flex cursor-default items-center justify-center py-1 text-muted-foreground',
|
|
className
|
|
)
|
|
"
|
|
>
|
|
<slot>
|
|
<i class="icon-[lucide--chevron-up]" />
|
|
</slot>
|
|
</SelectScrollUpButton>
|
|
</template>
|