1.1.6 • Published 2 years ago
@fylgja/form v1.1.6
Fylgja - Form
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/formThen 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.