项目
在 GitHub 查看
twisty/formsy-react-components
关于
用于 formsy-react 表单的 Bootstrap 组件。
网站与应用开发实测星标增长
- 24小时
- 0
- 7天
- 0
- 15天
- 0
- 1个月
- 正在收集历史
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文formsy-react-components
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
- See examples for a overview on usage.
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.
探索相关项目
加载中…