feat: Create category component (#5103)

This commit is contained in:
Muhsin Keloth 2022-07-26 12:15:01 +05:30 committed by GitHub
parent 92bb84127b
commit bd7a56061e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 264 additions and 9 deletions

View file

@ -1,5 +1,5 @@
<template>
<label>
<label class="container">
<span v-if="label">{{ label }}</span>
<input
:value="value"
@ -10,7 +10,7 @@
@input="onChange"
@blur="onBlur"
/>
<p v-if="helpText" class="help-text" />
<p v-if="helpText" class="help-text">{{ helpText }}</p>
<span v-if="error" class="message">
{{ error }}
</span>
@ -46,7 +46,7 @@ export default {
},
readonly: {
type: Boolean,
deafaut: false,
default: false,
},
styles: {
type: Object,
@ -63,3 +63,21 @@ export default {
},
};
</script>
<style scoped lang="scss">
.container {
margin: 0 0 var(--space-normal);
input {
margin: 0;
}
.page-sub-title {
color: var(--s-600);
}
.help-text {
margin-top: var(--space-micro);
font-size: var(--font-size-mini);
color: var(--s-600);
font-style: normal;
}
}
</style>