Form
Container for collecting data to submit.
Basic usage
Validation
We use vuelidate for data validation.
Form Item Attributes
Attribute | Description | Type | Default |
---|---|---|---|
label | Label text. | string | — |
required | Whether the field is required or not. | boolean | false |
optional | Whether the field is optional. | boolean | false |
help-text | Additional helper text. | string | — |
error | Field error message, set its value and the field will validate error and show this message immediately. | string | — |
size | Control the size of components in this form-item. | large / default / small | default |
Form Item Slots
Name | Description | Slot Scope |
---|---|---|
— | Content of Form Item. | — |
label | Custom content to display on label. | { label } |