Files
vuefilemanager/resources/js/components/Others/Forms/FormLabel.vue
2021-08-10 17:49:22 +02:00

66 lines
1.4 KiB
Vue

<template>
<div class="form-label">
<edit-2-icon v-if="!icon" size="22" class="icon text-theme dark-text-theme" />
<settings-icon v-if="icon === 'settings'" size="22" class="icon text-theme dark-text-theme" />
<smartphone-icon v-if="icon === 'smartphone'" size="22" class="icon text-theme dark-text-theme" />
<key-icon v-if="icon === 'key'" size="22" class="icon text-theme dark-text-theme" />
<b class="label">
<slot></slot>
</b>
</div>
</template>
<script>
import {
KeyIcon,
Edit2Icon,
SettingsIcon,
SmartphoneIcon,
} from 'vue-feather-icons'
export default {
name: 'FormLabel',
props: ['icon'],
components: {
KeyIcon,
Edit2Icon,
SettingsIcon,
SmartphoneIcon,
}
}
</script>
<style lang="scss" scoped>
@import '/resources/sass/vuefilemanager/_variables';
@import '/resources/sass/vuefilemanager/_mixins';
.form-label {
display: flex;
align-items: center;
margin-bottom: 30px;
.icon {
margin-right: 10px;
path, circle, rect, line {
color: inherit;
}
}
.label {
@include font-size(18);
font-weight: 700;
}
}
.dark-mode {
.form-label {
.label {
color: $dark_mode_text_primary;
}
}
}
</style>