* updated dependencies * updated readme * upgrade to vue 3 * updated buttons * duplicate id removed * updated contact
46 lines
650 B
Vue
46 lines
650 B
Vue
<template>
|
|
<button
|
|
class="btn"
|
|
:class="{ 'btn-reverse': isReverse }"
|
|
title="Wyślij wiadomość"
|
|
>
|
|
<font-awesome-icon
|
|
v-if="hasIcon && icon"
|
|
class="icon"
|
|
:icon="icon"
|
|
/>
|
|
<slot />
|
|
</button>
|
|
</template>
|
|
|
|
<script setup>
|
|
import { defineProps } from 'vue'
|
|
|
|
defineProps({
|
|
hasIcon: {
|
|
type: Boolean,
|
|
default: false
|
|
},
|
|
icon: {
|
|
type: String,
|
|
default: ''
|
|
},
|
|
isReverse: {
|
|
type: Boolean,
|
|
default: false
|
|
}
|
|
})
|
|
</script>
|
|
|
|
<style lang="scss" scoped>
|
|
@import "../../../scss/btn";
|
|
|
|
.btn {
|
|
@include button($has-icon: true);
|
|
}
|
|
|
|
.btn-reverse {
|
|
@include button(true, true);
|
|
}
|
|
</style>
|