@hixme-ui/label
v2.2.0
Published
hixme-ui Label component
Downloads
200
Readme
Label
npm i --save @hixme-ui/label
Basic Usage
Use it anywhere you would use a form label. Label works with all the same props as Text. Customize your form label as needed.
import Label from '@hixme-ui/label'
import Input from '@hixme-ui/input'
import FormGroup from '@hixme-ui/form-group'
<form>
<FormGroup>
<Label>First name</Label>
<Input name='firstname' />
</FormGroup>
</form>
Use Label with FormGroup to get the proper spacing with Input, Select, and other form components.