Skip to content

Client-side HTML form validations based on the browser HTML Form Validation API

License

Notifications You must be signed in to change notification settings

marcoroth/formulus

Repository files navigation

Formulus

NPM Version NPM Downloads NPM Bundle Size

Getting Started

yarn add formulus

Client-side HTML form validations

Client-side HTML form validations based on the browser HTML Form Validation API

<form formulus>
  <input type="text" placeholder="type=text">
  <input type="text" required placeholder="type=text required">
  <input type="email" required placeholder="type=email required">
  <input type="text" minlength="3" required placeholder="type=text required minlength=3">
  <input min="5" max="10" type="number" required placeholder="type=number required min=5 max=10">
  <input min="10" type="number" required placeholder="type=number required min=10">
  <input type="submit" value="Submit">
</form>