frontend/components/buttons/button-dropdown.vue

22 lines
567 B
Vue
Raw Normal View History

<template>
<ButtonBase class="enabled:hover:bg-white/20 text-sm !rounded-sm !ring-0 !py-3 sm:!py-1.5 sm:!px-2 !justify-start">
<Icon :icon="icon" />
<slot />
</ButtonBase>
</template>
<script lang="ts" setup>
import type { ButtonHTMLAttributes } from "vue";
import ButtonBase from "~/packages/ui/components/buttons/button.vue";
import Icon from "~/packages/ui/components/icons/icon.vue";
2024-05-12 11:23:38 +02:00
interface Props extends /* @vue-ignore */ ButtonHTMLAttributes {}
2024-04-25 08:58:17 +02:00
defineProps<
Props & {
icon: string;
}
>();
</script>
<style></style>