explorer-app/components/Button.vue

37 lines
596 B
Vue
Raw Normal View History

2023-12-19 18:43:42 +01:00
<script setup lang="ts">
defineProps<{
border?: boolean
}>()
</script>
<template>
<div
flex
items-center
gap-12px
px-12px
py-6px
cursor-pointer
text-app-white
:class="[border ? 'border-2px border-app-white' : 'border-0']"
hover:text-app-black
hover:bg-app-white
>
2023-12-19 18:43:42 +01:00
<template v-if="!!$slots.prefix">
<div text-24px>
<slot
v-if="!!$slots.prefix"
name="prefix"
/>
2023-12-19 18:43:42 +01:00
</div>
</template>
<div
text="14px"
leading-32px
font-700
>
2023-12-19 18:43:42 +01:00
<slot />
</div>
</div>
</template>