frontend/app/components/notes/action-button.vue

16 lines
355 B
Vue
Raw Normal View History

2025-04-10 14:48:03 +02:00
<template>
<Button variant="ghost" class="max-w-14 w-full" size="sm">
2025-12-09 22:32:22 +01:00
<component :is="icon" class="size-4"/>
<slot/>
2025-04-10 14:48:03 +02:00
</Button>
</template>
<script lang="ts" setup>
import type { FunctionalComponent } from "vue";
import { Button } from "../ui/button";
const { icon } = defineProps<{
icon: FunctionalComponent;
}>();
</script>