Skip to content

FormField

This component is designed to group elements related to one field in the container, e.g. label and text input. It passes down (via provide) information about the validated object and the field name. FormField can function as an element of FormGroup.

Props

template
Field template
type:String
default:vertical
values:horizontal, vertical, checkbox, radio, toggle
model
required
Validation object containing information on the properties of an object intended for one input
type:Object
default:{} as FieldContext
name
required
Input name
type:String
hint
It decides whether to show red validation only when sending.
type:Boolean
default:false

Slots

default
Main slot for label, input and valid fields

Examples

html
<form-field name="nameObj" model="fieldObj"> Input components </form-field>