Forms
Forms are commonly used to edit a set of fields, which are saved as a whole.
Form component provides a layout for multiple Form fields and a slot for actions.
Form fields can be of course be used without the form component, too.
Form Field
Props
Name
Type
label
string
The label of the form field
tag
string
HTML tag to be used. Defaults to label
error
boolean
Whether or not the form field is in error state
required
boolean
Whether or not the field is required. If true, an asterisk character (*) will be added to the label. Note that there’s no form validaition applied!
Slots
Name
Payload
default
{ error: boolean }
Place the control here
notes
–
Optional notes to be displayed below the control
Form
Slots
Name
Payload
default
Place form fields here
actions
–
Form actions, such as a submit button