Alina Beck 1ffde6bf10 refactor: CategoriesFilter to not use ds-flex
Co-authored-by: mattwr18 <mattwr18@gmail.com>

- introduce LabeledButton component
- rename FilterMenu to HashtagsFilter and FilterPosts to FilterMenu
2020-03-25 11:02:00 +01:00

41 lines
699 B
Vue

<template>
<div class="labeled-button">
<base-button circle :icon="icon" :filled="filled" @click="event => $emit('click', event)" />
<label class="label">{{ label }}</label>
</div>
</template>
<script>
export default {
props: {
filled: {
type: Boolean,
default: false,
},
icon: {
type: String,
required: true,
},
label: {
type: String,
required: true,
},
},
}
</script>
<style lang="scss">
.labeled-button {
display: flex;
flex-direction: column;
align-items: center;
padding: 0 $space-x-small;
> .label {
margin-top: $space-x-small;
font-size: $font-size-small;
text-align: center;
}
}
</style>