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