@chantelle/form
v0.1.2
Published
The Form components of the Chantelle Pattern Library
Downloads
4
Readme
Input
Installation
yarn add @chantelle/field-text
Usage
First, include the CSS in your HTML:
<link rel="stylesheet" href="node_modules/@chantelle/field-text/dist/styles.css">
Note: you can import the CSS directly into your project if your bundler supports it:
import '@chantelle/input/field-text/styles.css';
React Component
import { Input } from '@chantelle/form';
ReactDOM.render(
<Input
id='someid'
label='Name'
isRequired
/>,
container
);
CSS API
TBD.