- Notifications
You must be signed in to change notification settings - Fork0
Beth3346/elr-scss-forms
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
a library of sass mixins
Download node atnodejs.org and install it, if you haven't already.
npm install elr-scss-forms
or
yarn add elr-scss-forms
@import"elr-scss-form/src/main";.form {@includeelr-form;}
<formclass="form"><divclass="form-row"><divclass="input-group"><labelfor="fav-animal">Favorite Animal</label><divclass="input-wrapper"><spanclass="input-icon"><iclass="fa fa-lock"></i></span><inputid="fav-animal"type="text"placeholder="penguins"/></div><smallclass="input-helper-text">This is some helper text</small></div><divclass="input-group"><labelfor="fav-place">Favorite Place</label><divclass="input-wrapper"><inputid="fav-place"type="text"placeholder="Italy"/></div></div></div><divclass="form-buttons"><buttontype="submit"class="button">Submit</button></div></form>
- inline form
- form states (loading, ready, error, submitted)
- form input error states
SEE LICENSE IN LICENSE.md