0.5.3 • Published 6 years ago

@chantelle/field v0.5.3

Weekly downloads
-
License
MIT
Repository
bitbucket
Last release
6 years ago

Field

Installation

yarn add @chantelle/field

Styles

<link rel="stylesheet" href="node_modules/@chantelle/field/dist/styles.css">

Note: you can import the CSS directly into your project if your bundler supports it:

 import '@chantelle/field/dist/styles.css';

Components

The sub-components used by Field are also exported and can be used separately.

import { Label, Input } from '@chantelle/field';

<Label htmlFor='custom-input'>Some label text</Label>
<Input id='custom-input' />

CSS API

<label class="pl-label" for="field-name">Name</label>
<input type="text" class="pl-field pl-field--text" id="field-name" />

Types

To change the type of an input, just use any valid value for the type DOM attribute. Don't forget to update the variation class pl-field--{type}, otherwise you might not apply any specific style applied to that input type.

<label class="pl-label" for="user-email">Email</label>
<input type="email" class="pl-field pl-field--email" id="user-email" />
0.5.3

6 years ago

0.5.2

6 years ago

0.5.1

6 years ago

0.5.0

6 years ago

0.4.0

6 years ago

0.3.0

6 years ago

0.2.0

6 years ago

0.1.3

6 years ago

0.1.2

6 years ago

0.1.1

6 years ago

0.1.0

6 years ago