frontend/components/notes/action-button.vue
2025-04-10 14:48:03 +02:00

16 lines
349 B
Vue

<template>
<Button variant="ghost" class="max-w-14 w-full">
<component :is="icon" class="size-4.5" />
<slot />
</Button>
</template>
<script lang="ts" setup>
import type { FunctionalComponent } from "vue";
import { Button } from "../ui/button";
const { icon } = defineProps<{
icon: FunctionalComponent;
}>();
</script>