chore(FormGroup): add wrapper class in preset

This commit is contained in:
Benjamin Canac
2022-01-05 11:42:47 +01:00
parent d52a27f8c3
commit c183df8a17
2 changed files with 6 additions and 1 deletions

View File

@@ -96,6 +96,7 @@ const button = {
}
const formGroup = {
wrapper: '',
label: 'block text-sm font-medium u-text-gray-700',
container: 'mt-1 relative',
required: 'text-red-400',

View File

@@ -1,5 +1,5 @@
<template>
<div>
<div :class="wrapperClass">
<slot name="label">
<div class="flex content-center justify-between">
<label
@@ -57,6 +57,10 @@ export default {
type: String,
default: null
},
wrapperClass: {
type: String,
default: () => $ui.formGroup.wrapper
},
containerClass: {
type: String,
default: () => $ui.formGroup.container