Code Monkey home page Code Monkey logo

formsy-react-components's Introduction

formsy-react-components

Build Status npm version GitHub release GitHub contributors

NOTE! the master branch is the development branch, the release-0.x branch has the source and README for the current npm release.

formsy-react-components is a selection of React components that render form elements for use in a formsy-react form.

The form components included are:

  • <Checkbox>
  • <CheckboxGroup>
  • <File>
  • <Input>
  • <RadioGroup>
  • <Select>
  • <Textarea>

For convenience, we also ship a <Form> component that wraps formst-react’s <Form> component and allows you to define some common props that will be picked-up by child components in the form.

The components render markup to be quickly included in a Bootstrap 3 form. This includes a <label>, help text, and some validation styling tied to formsy’s validation state and validation messages.

Install

To install using npm:

npm install --save formsy-react
npm install --save formsy-react-components

Usage

import { Form, Input } from 'formsy-react-components';

const MyForm = (props) => {
    return (
        <Form onSubmit={(data) => { console.log(data) }}>
            <Input
                name="firstname"
                label="What is your first name?"
            />
        </Form>
    )
}

Examples

Documentation

Documentation is a work in progress!

  • For a working code example, visit the Playground, then examine the source.
  • There is some information in the Wiki.

formsy-react-components's People

Contributors

addexm avatar almassapargali avatar erzzo avatar m-r-r avatar reltik avatar rjatkinson2 avatar rodryquintero avatar semigradsky avatar shilman avatar twisty avatar wkerswell avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.