Security News
RubyGems.org Adds New Maintainer Role
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.
formsy-semantic-ui-react
Advanced tools
Lets you quicky create and validate formsy-react forms built with Semantic-Ui-React components.
npm install formsy-semantic-ui-react --save
You will also need formsy-react
npm install formsy-react --save
Using ES6 imports:
import {
Input,
TextArea,
Checkbox,
Radio,
RadioGroup,
Dropdown,
Select
} from 'formsy-semantic-ui-react';
For more information on validation, take a look at Formsy-React's Dcoumentaion
import { Form } from 'formsy-react';
<Form
noValidate
onValidSubmit={ onSubmit }
onInvalidSubmit={ onInvalidSubmit }
>
<Input
name="email"
placeholder="Email"
icon="at"
iconPosition="left"
required
validations="isEmail"
validationErrors={{
isEmail: 'This is not a valid Email',
isDefaultRequiredValue: 'Email is required',
}}
/>
</Form>
To display error messages, pass an element through the errorLabel
prop.
Example: You can display Semaintic-UI-React's <Label/>
compnent:
<Checkbox
...
errorLabel={ <Label basic color="orange" pointing="left"/> }
/>
You can also pass in a custom component with the desired styles.
Go to the example folder to see more examples of how the components are used. To see the validation in action clone this repo and run
npm install
then
npm run example-app
Tests are done using Mocha, chai and enzyme on jsdom.
To run the tests,
npm install
then
npm run test
or npm run test:watch
for single-run or watch-mode, respectively.
License: MIT
FAQs
Formsy-React wrappers for Semantic-Ui-React's form Components
We found that formsy-semantic-ui-react demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 open source maintainers collaborating on the project.
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.
Security News
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.
Security News
Node.js will be enforcing stricter semver-major PR policies a month before major releases to enhance stability and ensure reliable release candidates.
Security News
Research
Socket's threat research team has detected five malicious npm packages targeting Roblox developers, deploying malware to steal credentials and personal data.