formsy-react-components

Bootstrap components for a formsy-react form.

Github星跟蹤圖

formsy-react-components

Build Status
npm version
GitHub release
GitHub contributors

Note: The work here on the master branch is for upcoming release that supports Bootstrap 4. The source for current (1.x) releases can be found on the release-1.x branch.


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

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

Install

To install using yarn:

yarn add formsy-react
yarn add formsy-react-components@next

To install using npm:

npm install --save formsy-react
npm install --save formsy-react-components@next

Browser Support

This should run on browsers where both Bootstrap and React are supported.

  • Internet Explorer: polyfills for Set and Array.from are required.

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 /docs.

主要指標

概覽
名稱與所有者twisty/formsy-react-components
主編程語言TypeScript
編程語言JavaScript (語言數: 3)
平台
許可證MIT License
所有者活动
創建於2015-04-29 10:04:39
推送於2023-01-07 03:26:59
最后一次提交2021-06-14 16:59:01
發布數51
最新版本名稱v2.0.0-beta.5 (發布於 2020-03-23 22:41:43)
第一版名稱v0.0.0 (發布於 )
用户参与
星數288
關注者數8
派生數91
提交數569
已啟用問題?
問題數106
打開的問題數5
拉請求數26
打開的拉請求數13
關閉的拉請求數26
项目设置
已啟用Wiki?
已存檔?
是復刻?
已鎖定?
是鏡像?
是私有?