Form control
Used to provides context such as id, isReadonly, isInvalid, isDisabled, and isRequired to form elements.
Import
js
import { MpFormControl, MpFormLabel, MpFormHelpText, MpFormErrorMessage } from '@mekari/pixel3'
API
MpFormControl
Props
Slots
Name | Type | Default |
---|---|---|
id | string | - |
is-read-only | boolean | false |
is-disabled | boolean | false |
is-invalid | boolean | false |
is-required | boolean | false |
MpFormLabel
Slots
Name | Type |
---|---|
default | any |
MpFormHelpText
Slots
Name | Type |
---|---|
default | any |
MpFormErrorMessage
Slots
Name | Type |
---|---|
default | any |