fix: normalize component boundary spacing
This commit is contained in:
@@ -1,11 +1,12 @@
|
||||
component FormField {
|
||||
props {
|
||||
class = ""
|
||||
label = "Field"
|
||||
help = ""
|
||||
error = ""
|
||||
required = false
|
||||
}
|
||||
view {
|
||||
<div class="space-y-2"><div class="text-sm font-semibold">{label}<span data-show="required" class="ml-1 text-red-500">*</span></div><slot /><p data-show="help && !error" class="text-sm text-slate-500">{help}</p><p data-show="error" role="alert" class="text-sm font-medium text-red-600">{error}</p></div>
|
||||
<div class="space-y-2 {class}"><div class="text-sm font-semibold">{label}<span data-show="required" class="ml-1 text-red-500">*</span></div><slot /><p data-show="help && !error" class="text-sm text-slate-500">{help}</p><p data-show="error" role="alert" class="text-sm font-medium text-red-600">{error}</p></div>
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user