npm.io
2.0.0 • Published 1 year ago

@visual-framework/vf-form__fieldset

Licence
Apache 2.0
Version
2.0.0
Deps
0
Size
24 kB
Vulns
0
Weekly
0

Form Fieldset component

npm version

About

The vf-form__fieldset is used to group a set related form inputs.

Usage

Use the vf-form__fieldset component to display a relationship between multiple form inputs. You can also need use a vf-form__fieldset inside of another vf-form__fieldset, this would be good to group multiple vf-form__checkbox inputs and allow for a vf-form__legend to give the inputs a heading or question. To make it more obvious what we are asking the site visitor to fill out and why, it is recommened to use a vf-form__legend within each vf_form__fieldset.

Install

This repository is distributed with [npm][https://www.npmjs.com/]. After [installing npm][https://www.npmjs.com/get-npm] and yarn, you can install vf-form__fieldset with this command.

$ yarn add --dev @visual-framework/vf-form__fieldset

Sass/CSS

The style files included are written in Sass. If you're using a VF-core project, you can import it like this:

@import "@visual-framework/vf-form__fieldset/index.scss";

Make sure you import Sass requirements along with the modules. You can use a project boilerplate or the vf-sass-starter

Help

Keywords