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 = { const formGroup = {
wrapper: '',
label: 'block text-sm font-medium u-text-gray-700', label: 'block text-sm font-medium u-text-gray-700',
container: 'mt-1 relative', container: 'mt-1 relative',
required: 'text-red-400', required: 'text-red-400',

View File

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