/ Refactored btn component / icons and revamped list layout

This commit is contained in:
Alexis
2021-03-29 14:16:36 +02:00
parent 984b5fdd9d
commit 51dffd48dc
14 changed files with 71 additions and 44 deletions

View File

@@ -0,0 +1,39 @@
<template>
<button
class="btn btn-primary"
:class="[
icon ? 'btn-icon' : ''
]"
>
<slot />
<span v-if="icon">
<img
:src="
white ? `/icons/${icon}.svg` : `/icons/${icon}-white.svg`
"
alt=""
class="fs-icon icon-sm"
>
</span>
</button>
</template>
<script>
export default {
name: 'FSButton',
props: {
icon: {
type: String,
default: () => { return '' }
},
white: {
type: Boolean,
default: () => { return false }
}
}
}
</script>
<style>
</style>