@hig/input

2.2.0 • Public • Published

Input

Inputs allow the user to input a small amount of freeform text (100 characters or less).

Read more about when and how to use the Input component on the website.

Getting started

Install the package

yarn add @hig/input @hig/theme-context @hig/theme-data

Import the component

import Input from '@hig/input';

Basic usage

<Input
  value={this.state.value}
  onChange={this.handleChange}
/>

Custom CSS

Use the className prop to pass in a css class name to the outermost container of the component. The class name will also pass down to most of the other styled elements within the component.

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 2.2.0
    6
    • latest

Version History

Package Sidebar

Install

npm i @hig/input

Weekly Downloads

19

Version

2.2.0

License

Apache-2.0

Unpacked Size

48.8 kB

Total Files

5

Last publish

Collaborators

  • hig-bot
  • nfiniteset
  • wmui51
  • staceyshk