InputField
<InputField /> is a wrapper component for an <Input /> that includes label and error messages.
It can be compared to the form-control class from Bootstrap.
import { InputField, Input } from 'minerva-ui'
Preview
Source
Input Field with Error Message
Preview
Source
Required Input Field
Preview
Source
Props
These are props related to the Input Field component.
| Name | Type | Is Required | Default | Description |
|---|---|---|---|---|
label | string | optional | none | Label for input field |
errorText | string | optional | none | Label for input field |
isRequired | string | optional | none | Shows required marker |