@fylgja/form

1.1.6 • Public • Published

Fylgja - Form

NPM version license

The form component is super easy to use, it's a zero config module that styles all form elements directly.

Allowing you to focus on the form itself.

Installation

npm install @fylgja/form

Then include the component in to your code via;

@use "@fylgja/form";
// Or via PostCSS import
@import "@fylgja/form";

Styles

By default all form styles are set to the fylgja default style.

If you want to use the field or box style, change the variable $form-style to one of the other options.

Or if you are importing this as plain CSS or in PostCSS use;

@import "@fylgja/form/field.css";
@import "@fylgja/form/box.css";

For versions older than v1.2 use style-{field|box}.css

@layer support

If you need support for @layer, use the following import;

@use "@fylgja/form" with ($form-layer: "components");
// Or via native CSS import, also supported by PostCSS import
@import "@fylgja/form" layer("components");

How to use

For more information see the form docs on the Fylgja.dev.

Package Sidebar

Install

npm i @fylgja/form

Homepage

fylgja.dev/

Weekly Downloads

164

Version

1.1.6

License

MIT

Unpacked Size

53.6 kB

Total Files

24

Last publish

Collaborators

  • allrude
  • grimlink