Files
speckle-server/packages/frontend-2/components/presentation/controls/Button.vue
T
2025-09-15 10:01:59 +02:00

19 lines
441 B
Vue

<template>
<button
:disabled="disabled"
class="bg-foundation size-9 flex items-center justify-center hover:bg-primary-muted disabled:hover:bg-transparent text-foreground disabled:text-foreground-3"
>
<component :is="icon" class="size-4" />
<slot />
</button>
</template>
<script setup lang="ts">
import type { ConcreteComponent } from 'vue'
defineProps<{
icon: ConcreteComponent
disabled?: boolean
}>()
</script>