mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-01-28 19:00:35 +01:00
chore(FormGroup): add wrapper class in preset
This commit is contained in:
@@ -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',
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user