@hixme-ui/label

hixme-ui Label component

Usage no npm install needed!

<script type="module">
  import hixmeUiLabel from 'https://cdn.skypack.dev/@hixme-ui/label';
</script>

README

Label

npm i --save @hixme-ui/label

View it live

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.