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';

Input Field with Error Message

Required Input Field

Props

These are props related to the Input Field component.

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