0.2.0 • Published 6 years ago

@native-elements/ne-form v0.2.0

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
6 years ago

Form - Native Elements

by Native Elements

Native HTML <fieldset>, <legend>, <label>, <output> form elements with CSS API that give you superpowers. 🕶


Example

  <fieldset ne-form>
    <legend ne-form>Fieldset legend</legend>

    <label ne-form>Label</label>
    <label ne-form>Label 2</label>
  </fieldset>
:root {
  --ne-form-legend-margin: none;
}

.SpecialFieldset {
  --ne-form-legend-weight: 300;
}

Check the live demo

CSS API

* {
  /* Foreground API */
  --ne-form-legend-weight: 600; /* font-weight */

  /* Misc API */
  --ne-form-legend-margin: 0 0 0.5rem; /* margin */
}

Install

You can just install it with npm by running:

yarn add -D @native-elements/ne-form

Usage

Just import the css inside your project from the node_modules.

@import '@native-elements/ne-form/dist/ne-form.css';

PostCSS

If you are inside a postCSS environment you can also import the .pcss source file and build it with your build process:

@import '@native-elements/ne-form/src/ne-form.pcss';

NOTE: You need some PostCSS plugins to build Native Elements components.

0.2.0

7 years ago

0.1.0

7 years ago

0.0.9

7 years ago

0.0.7

7 years ago

0.0.6

8 years ago

0.0.5

8 years ago

0.0.4

8 years ago

0.0.3

8 years ago

0.0.2

8 years ago