All Projects → bradleytaunt → Normform

bradleytaunt / Normform

Licence: mit
Normform: A tiny CSS plugin to make your web forms beautiful again

Projects that are alternatives of or similar to Normform

Awesomevalidation
Android validation library which helps developer boil down the tedious work to three easy steps.
Stars: ✭ 1,093 (+1301.28%)
Mutual labels:  form, forms
Form2js
Javascript library for collecting form data
Stars: ✭ 630 (+707.69%)
Mutual labels:  form, forms
Formik Persist
💾 Persist and rehydrate a Formik form to localStorage
Stars: ✭ 345 (+342.31%)
Mutual labels:  form, forms
Formst
Model-driven Form library for React
Stars: ✭ 69 (-11.54%)
Mutual labels:  form, forms
Country Fns
🌏 Useful country data for forms and stuff.
Stars: ✭ 35 (-55.13%)
Mutual labels:  form, forms
grav-plugin-form
Grav Form Plugin
Stars: ✭ 48 (-38.46%)
Mutual labels:  forms, form
Unform
Performance-focused API for React forms 🚀
Stars: ✭ 4,340 (+5464.1%)
Mutual labels:  form, forms
react-hubspot
A collection of React hooks for interacting with Hubspot APIs
Stars: ✭ 20 (-74.36%)
Mutual labels:  forms, form
Verticalstepperform
Vertical Stepper Form Library for Android. It follows Google Material Design guidelines.
Stars: ✭ 868 (+1012.82%)
Mutual labels:  form, forms
React Final Form
🏁 High performance subscription-based form state management for React
Stars: ✭ 6,781 (+8593.59%)
Mutual labels:  form, forms
Customui
Library to create custom UI's in MCPE 1.2+
Stars: ✭ 60 (-23.08%)
Mutual labels:  form, forms
Usetheform
React library for composing declarative forms, manage their state, handling their validation and much more.
Stars: ✭ 40 (-48.72%)
Mutual labels:  form, forms
ContactEtc
Laraval package to instantly add a customisable contact form to your site.
Stars: ✭ 21 (-73.08%)
Mutual labels:  forms, form
Error Tailor
🦄 Making sure your tailor-made error solution is seamless!
Stars: ✭ 303 (+288.46%)
Mutual labels:  errors, form
form-js
View and visually edit JSON-based forms.
Stars: ✭ 125 (+60.26%)
Mutual labels:  forms, form
React Hook Form
📋 React Hooks for form state management and validation (Web + React Native)
Stars: ✭ 24,831 (+31734.62%)
Mutual labels:  form, forms
vue-use-form
✅ A Vue.js composition API function to validate forms
Stars: ✭ 97 (+24.36%)
Mutual labels:  forms, form
react-final-form-listeners
A collection of components to listen to 🏁 React Final Form fields
Stars: ✭ 91 (+16.67%)
Mutual labels:  forms, form
Formik
Build forms in React, without the tears 😭
Stars: ✭ 29,047 (+37139.74%)
Mutual labels:  form, forms
Smashing Form
MobX powered forms in React
Stars: ✭ 39 (-50%)
Mutual labels:  form, forms

Normform 2.0

Normform: A tiny CSS plugin to make your web forms beautiful again Form plugin (6KB)

Check out the demos

How to use

  1. Download normform.min.css (or normform.css if you wish to customize)
  2. Add the following to your project
<link rel="stylesheet" href="path-to-norform-folder/normform.min.css">
  1. Add the normform class to your form element
  2. Enjoy your forms!

Documentation

Most structuring questions can be answered by simply taking a look at the included index.html file for the proper way to build your form(s) for the best results.

Fieldsets & Legends

It is completely optional to use fieldset and/or legend, but to do so is very simple:

<fieldset>
    <legend>This is a legend</legend>
    {inner form content goes here}
</fieldset>

Inputs

The text, email, password, and number inputs all follow the structure of label > input.

Example:

<label for="text-input">Text Input:</label>
<input type="text" id="text-input" value="" placeholder="Text input content...">

Select Dropdowns

Default browser select styling is reset and Normform uses a custom div to represent the dropdown contents:

<label for="select-choice-2">Dropdown Select Choice:</label>
<div class="select-dropdown">
    <select name="select-choice-2" id="select-choice">
        <option value="Choice 1">Choice 1</option>
        <option value="Choice 2">Choice 2</option>
        <option value="Choice 3">Choice 3</option>
    </select>
</div>

Radios & Checkboxes

Radio and checkbox elements follow the structure of input > label. The default browser radios and checkboxes are hidden and replaced with custom elements.

<input type="radio" name="radio-choice" id="radio-choice-1" tabindex="6" value="choice-1" checked>
<label for="radio-choice-1">Choice 1</label>
<input type="checkbox" name="checkbox-1" id="checkbox-1">
<label for="checkbox-1">Checkbox 1</label>

Textareas

Straightforward:

<label for="textarea">Textarea:</label>
<textarea rows="8" name="textarea" id="textarea"></textarea>

Submit & Reset 'Buttons'

Inputs set with a default type of submit or reset will be automatically styled. If you wish to have both buttons inline with each other, simply group them inside an inline-buttons parent element:

<div class="inline-buttons">
    <input type="reset" value="Cancel">
    <input type="submit" value="Sign up">
</div>

Error Descriptors

Adding input validation is as simple as including the required attribute but if you wish to include additonal error descriptor you need to also include the requirements element and place all values inside a parent div:

<div>
    <label for="password-input">Password Input:</label>
    <input type="password" id="password-input" required  value="" tabindex="3" pattern="(?=.*\d)(?=.*[a-z])(?=.*[A-Z]).{6,}" placeholder="Secure password">
    <div class="requirements">Your password must be at least 6 characters as well as contain at least one uppercase, one lowercase, and one number.</div>
</div>

That's it! Enjoy, and if you have any feature request or notice any bugs - please open a ticket!

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].