Skip to content

Files

Latest commit

cd3102f · May 15, 2018

History

History
30 lines (21 loc) · 573 Bytes

README.md

File metadata and controls

30 lines (21 loc) · 573 Bytes

Text Field

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

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

Getting started

Install the package

yarn add @hig/text-field

Import the component and CSS

import TextField from '@hig/text-field';
import '@hig/text-field/build/index.css';

Basic usage

<TextField
  label="Tab title"
  placeholder="Foo"
  required="This field is required."
/>