mirror of
https://github.com/romancm/gamebrary
synced 2024-11-15 07:57:19 +00:00
WIP tag button
This commit is contained in:
parent
9ab0e9d8f9
commit
07b446d817
1 changed files with 43 additions and 0 deletions
43
src/components/Tag/Tag.vue
Normal file
43
src/components/Tag/Tag.vue
Normal 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>
|
Loading…
Reference in a new issue