Files
boursecu_user/src/views/base/home/components/ActionButton.vue
T

32 lines
704 B
Vue
Raw Normal View History

2026-05-14 13:44:43 +03:30
<template>
<div
class="text-center w-full flex-flex-col items-center home_appear_fade_in_up"
style="text-align: -webkit-center"
@click="$emit('click')"
>
<div
class="rounded-full w-[50px] h-[50px] bg-primary flex items-center justify-center"
style="border: solid 1px #0A1B37"
>
<Icon class="text-tertiary" :icon="action.icon" />
</div>
<div class="text-primary">{{ action.label }}</div>
</div>
</template>
<script setup lang="ts">
import Icon from '@/components/BasicPacks/BasicIcon.vue'
defineProps<{
action: {
name: string
icon: string
label: string
handler: () => void
}
}>()
defineEmits<{
click: []
}>()
</script>