Socket
Socket
Sign inDemoInstall

formsy-semantic-ui-react

Package Overview
Dependencies
31
Maintainers
1
Versions
52
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    formsy-semantic-ui-react

Formsy-React wrappers for Semantic-Ui-React's form Components


Version published
Maintainers
1
Install size
250 kB
Created

Readme

Source

formsy-semantic-ui-react Build Status 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 imports
import { Form, Input, TextArea, Checkbox,
  Radio, RadioGroup, Dropdown, Select } from 'formsy-semantic-ui-react';

// ES5
var Input = require('formsy-semantic-ui-react').Input;
/** and so on for the rest of the Components **/

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

Props

These props give you more control over behavior/markup

PropDescriptionTypeDefaultAvailable onRequired
errorLabelUsed to Show input errors next to inputs. Any children get replaced by getErrorMessage()string or class/funcnoneAll except FormNo
InstantValidationWhether or not to show Validation Errors as soon as user starts interacting with inputboolfalseInputNo

Examples

Go to the example folder to see some examples of how the components are used. For more information on building and validating formsy-react forms, take a look at Formsy-React's Dcoumentaion

To run the example app, clone this repo and run:

npm/yarn install
npm/yarn run example-app

Then go to localhost:8080

Tests

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

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

License: MIT

Keywords

FAQs

Last updated on 05 Apr 2017

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc