@chantelle/form

The Form components of the Chantelle Pattern Library

Usage no npm install needed!

<script type="module">
  import chantelleForm from 'https://cdn.skypack.dev/@chantelle/form';
</script>

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.