WIP tag button

This commit is contained in:
Roman Cervantes 2019-04-25 11:45:33 -07:00
parent 9ab0e9d8f9
commit 07b446d817

View file

@ -0,0 +1,43 @@
<template lang="html">
<button class="tag" v-if="label" :style="size">
<span >
<i class="fas fa-times close" v-if="!readonly" />
</span>
{{ label }}
</button>
</template>
<script>
export default {
props: {
readonly: {
type: Boolean,
default: true,
},
label: String,
color: String,
size: {
type: String,
default: 'xsmall',
},
},
};
</script>
<style lang="scss" rel="stylesheet/scss" scoped>
@import "~styles/styles.scss";
.tag {
background-color: $color-blue;
align-items: center;
justify-content: center;
}
.close {
font-size: $font-size-xsmall;
margin-right: 2px;
background: $color-white;
border-radius: 100%;
width: 15px;
}
</style>