Files
haex-hub-mirror/src/components/ui/button/index.vue
haex 121dd9dd00 Add GitHub Actions CI/CD pipelines
- Add build pipeline for Windows, macOS, and Linux
- Add release pipeline for automated releases
- Remove CLAUDE.md from git tracking
2025-11-01 14:46:01 +01:00

37 lines
805 B
Vue

<template>
<div>
<UTooltip :text="buttonProps?.tooltip">
<UButton
class="pointer-events-auto"
v-bind="{
...buttonProps,
...$attrs,
}"
@click="$emit('click', $event)"
>
<template
v-for="(_, slotName) in $slots"
#[slotName]="slotProps"
>
<slot
:name="slotName"
v-bind="slotProps"
/>
</template>
</UButton>
</UTooltip>
</div>
</template>
<script setup lang="ts">
import type { ButtonProps } from '@nuxt/ui'
interface IButtonProps extends /* @vue-ignore */ ButtonProps {
tooltip?: string
}
const buttonProps = defineProps<IButtonProps>()
defineEmits<{ click: [Event] }>()
const { isSmallScreen } = storeToRefs(useUiStore())
</script>