All Projects → zabute → Formsy Semantic Ui React

zabute / Formsy Semantic Ui React

Licence: mit
Formsy-React wrappers for Semantic-Ui-React's form components

Programming Languages

typescript
32286 projects

Projects that are alternatives of or similar to Formsy Semantic Ui React

dropzone-ui-react
The most complete React Library Component for drag’n’drop files. Image and video previews. File validation. Multilanguage. Server side support.
Stars: ✭ 122 (+18.45%)
Mutual labels:  form, form-validation
Approvejs
A simple JavaScript validation library that doesn't interfere
Stars: ✭ 336 (+226.21%)
Mutual labels:  form-validation, form
grav-plugin-form
Grav Form Plugin
Stars: ✭ 48 (-53.4%)
Mutual labels:  form, form-validation
validate
An extension to the popular library validate.js that adds some useful custom validations out of the box. Also, a hub for all custom validations, that we have created, so you can easily add them to your own project.
Stars: ✭ 31 (-69.9%)
Mutual labels:  form, form-validation
React Final Form
🏁 High performance subscription-based form state management for React
Stars: ✭ 6,781 (+6483.5%)
Mutual labels:  form-validation, form
svelte-form
JSON Schema form for Svelte v3
Stars: ✭ 47 (-54.37%)
Mutual labels:  form, form-validation
Validify
Simple-as-possible React form validation
Stars: ✭ 271 (+163.11%)
Mutual labels:  form-validation, form
autoform
🤖📝 AutoForm is the simplest way to automatically generate fast, beautiful and standards/WCAG compliant HTML forms based on an Ecto Schema in a Phoenix Web Application to *significantly* speed up Web App Development. 🚀
Stars: ✭ 18 (-82.52%)
Mutual labels:  form, form-validation
Formsy React
A form input builder and validator for React JS
Stars: ✭ 708 (+587.38%)
Mutual labels:  form-validation, form
Bunny
BunnyJS - Lightweight native (vanilla) JavaScript (JS) and ECMAScript 6 (ES6) browser library, package of small stand-alone components without dependencies: FormData, upload, image preview, HTML5 validation, Autocomplete, Dropdown, Calendar, Datepicker, Ajax, Datatable, Pagination, URL, Template engine, Element positioning, smooth scrolling, routing, inversion of control and more. Simple syntax and architecture. Next generation jQuery and front-end framework. Documentation and examples available.
Stars: ✭ 473 (+359.22%)
Mutual labels:  form-validation, form
formalizer
React hooks based form validation made for humans.
Stars: ✭ 12 (-88.35%)
Mutual labels:  form, form-validation
Usetheform
React library for composing declarative forms, manage their state, handling their validation and much more.
Stars: ✭ 40 (-61.17%)
Mutual labels:  form-validation, form
vue-use-form
✅ A Vue.js composition API function to validate forms
Stars: ✭ 97 (-5.83%)
Mutual labels:  form, form-validation
Legit
input validation framework
Stars: ✭ 81 (-21.36%)
Mutual labels:  form-validation, form
jquery.niceform
The jQuery plugin for validation and post form data to server
Stars: ✭ 16 (-84.47%)
Mutual labels:  form, form-validation
Formvuelar
Vue form components with server-side validation in mind
Stars: ✭ 263 (+155.34%)
Mutual labels:  form-validation, form
form-data-json
A zero dependency, cross browser library to easily get or set/manipulate form input values as/from a json object.
Stars: ✭ 37 (-64.08%)
Mutual labels:  form, form-validation
react-cool-form
😎 📋 React hooks for forms state and validation, less code more performant.
Stars: ✭ 246 (+138.83%)
Mutual labels:  form, form-validation
React Hook Form
📋 React Hooks for form state management and validation (Web + React Native)
Stars: ✭ 24,831 (+24007.77%)
Mutual labels:  form-validation, form
Ok
✔️ A tiny TypeScript library for form validation
Stars: ✭ 34 (-66.99%)
Mutual labels:  form-validation, form

formsy-semantic-ui-react CI npm version

Quicky create formsy-react forms with Semantic-Ui-React's Form Components.

Installation

npm install (or yarn add) formsy-semantic-ui-react

You will also need formsy-react

npm install (or yarn add) formsy-react

Usage

// ES6
import {
  Form, Input, TextArea, Checkbox, Radio, RadioGroup, Dropdown, Select,
} from 'formsy-semantic-ui-react';
// ES5
var Form = require('formsy-semantic-ui-react').Form;
/** and so on for the rest of the Components **/
const App = (props) => {
  const errorLabel = <Label color="red" pointing/>

  return (
    <Form
      onValidSubmit={ props.onValidSubmit }
      loading={ props.isLoading }
    >
      <Form.Input
        name="email"
        label="Email"
        validations="isEmail"
        validationErrors={{ isEmail: 'Email not valid' }}
        errorLabel={ errorLabel }
      />
    </Form>
  )
}

Props

This library defines a couple of (non-required) props for more control over behavior/markup:

  • errorLabel (type: Node default: none)

    Used to Show validation errors next to the inputs. Any children get replaced by getErrorMessage()

  <Checkbox
    errorLabel={ <Label color="red" pointing="left"/> }/>
  />
  • instantValidation (type: bool default: false)

    Whether or not to show validation errors as soon as user starts typing. Only available on Input and Form.Input

  <Input
    instantValidation
  />

Examples

Go to the example folder to see more examples of how the components are used. To run the example app:

npm/yarn install
npm/yarn run example-app

Then go to localhost:8080

For more information on building and validating formsy-react forms, take a look at Formsy-React's Dcoumentaion

Tests

Tests are done using Mocha, chai, sinon, and enzyme on jsdom. To run the tests,

npm/yarn install
npm/yarn run test (or test:watch)

License: MIT

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].