New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

formsy-react-form-inputs

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

formsy-react-form-inputs

Form inputs to work with formsy react

  • 1.0.0
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Weekly downloads
 
Created
Source

Formsy React Form Inputs demo

Build Status Coverage Status

Implementation Guide

1. Installation
npm install --save formsy-react
npm install --save formsy-react-form-inputs
2. Import all require input types, styles and Formsy React Form
import { Form } from "formsy-react";
import { Input, Checkbox, RadioGroup, Styles } from "../../../src/";
3. Add Components to JSX
<Form onSubmit={this.submitForm} noValidate className="form">
  <Input
    type="text"
    id="signup-first-name"
    name="signupFirstName"
    required
    value=""
    className="input"
    label="First name"
    placeholder="First name"
    validationErrors={{
      isDefaultRequiredValue: 'This is required'
    }}
  />

  <Input
    type="text"
    id="signup-last-name"
    name="signupLastName"
    value=""
    className="input"
    label="Last name"
  />

  <Input
    type="currency"
    id="signup-other-income"
    name="signupOtherIncome"
    value=""
    currencySymbol="£"
    label="Other income"
    helpText="This is your other annual household income from other factors before tax. Please enter 0 if nothing"
  />

  <Input
    type="text"
    id="signup-email"
    name="signupemail"
    value=""
    required
    label="Email address"
    validations={{
      isEmail: true,
    }}
    validationErrors={{
      isEmail: 'You have to type valid email',
      isDefaultRequiredValue: 'This is required'
    }}
    debounce={{
      change: 500
    }}
  />

  <Checkbox
    id="singup-checkbox"
    name="signupCheckbox"
    label="Get the free Martin’s email tips too"
    debounce={{
      change: 0
    }}
  />

  <RadioGroup
    name="signupRadio"
    options={radioOptions}
    className="col-xs"
    groupClassName="row"
    debounce={{
      change: 0
    }}
  />


  <button
    type="submit">
    Submit
  </button>

</Form> 

API

Currently a work in progress

FAQs

Package last updated on 21 Jul 2017

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc