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

16 lines
331 B
Vue
Raw Normal View History

2025-04-10 14:48:03 +02:00
<template>
2025-12-09 23:26:59 +01:00
<Button variant="ghost" 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>