@igloo-ui/form-group
v1.2.3
Published
The FormGroup is a component that displays a label and an error message for a form input.
Downloads
20
Readme
FormGroup
The FormGroup is a component that displays a label and an error message for a form input.
Installation
To install @igloo-ui/form-group
in your project, you will need to run the following command using npm:
npm install @igloo-ui/form-group
If you prefer Yarn, use the following command instead:
yarn add @igloo-ui/form-group
Usage
Then to use the component in your code just import it!
import FormGroup from '@igloo-ui/form-group';
import Input from '@igloo-ui/input';
<FormGroup label="Name" message="This field is required" showMessage>
<Input type="text" placeholder="John Doe" error />
</FormGroup>;