Skip to content

FieldRenderer ​

Overview ​

Resolves and renders a single form field and its widget for a given formModelName key. It reads the field and widget components, props, and slot configuration from a formModel context object, then composes them into the correct layout with override slots passed through from the parent.

Props ​

NameTypeRequiredDefaultDescription
themeOverrideObjectnullA partial ThemeObject keyed by component name, merged over this component's theme and provided to descendants.
objectGridFieldSlotPropsobject{}
fieldsetStackedInlinePropsobject{}
formModelNamestringyes
fieldPropsobject{}
widgetPropsobject{}
formModelimport("@vueda/use/useFormModel.js").UseFormModelStateyes
hiddenbooleanundefined
hideLabelbooleanundefinedOverrides label visibility on the field component without suppressing its validation messages.
isFilterbooleanfalse

Slots ​

NameScopedDescription
field(fieldName)yesOverride the entire rendered output for a specific field; receives all field and widget context as bindings.
field(fieldName)defaultyesOverride the default field body (anchor link + widget wrapper) for a specific field.
widget(fieldName)yesOverride the entire widget area for a specific field.
widget(fieldName)defaultyesOverride the widget's default slot content for a specific field.

Full slot reference

Source ​

client/lib/form/form-model/FieldRenderer.vue