mirror of
https://github.com/versia-pub/frontend.git
synced 2025-12-06 16:38:20 +01:00
16 lines
357 B
Vue
16 lines
357 B
Vue
<template>
|
|
<Button variant="ghost" class="max-w-14 w-full" size="sm">
|
|
<component :is="icon" class="size-4" />
|
|
<slot />
|
|
</Button>
|
|
</template>
|
|
|
|
<script lang="ts" setup>
|
|
import type { FunctionalComponent } from "vue";
|
|
import { Button } from "../ui/button";
|
|
|
|
const { icon } = defineProps<{
|
|
icon: FunctionalComponent;
|
|
}>();
|
|
</script>
|