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.

NameTypeIs RequiredDefaultDescription
labelstringoptionalnoneLabel for input field
errorTextstringoptionalnoneLabel for input field
isRequiredstringoptionalnoneShows required marker