bee-form-group

2.0.1 • Public • Published

bee-form-group

npm version Build Status Coverage Status

FormGroup 组件用来包裹像 form control lable help text validate state的元素

安装步骤

$ git clone https://github.com/tinper-bee/bee-form-group
cd bee-form-group
$ npm install
$ npm run dev

使用

使用单独的bee-form-group包

组件引入

先进行下载bee-form-group包

npm install --save bee-form-group

组件调用

import FormGroup from 'bee-form-group';
import FormControl from 'bee-form-control';
React.render(<div>
    <div>
        <FormGroup> 
            <FormControl type="text" />
        </FormGroup>
    </div>
</div>, document.getElementById('target'));

样式引入

  • 可以使用link引入dist目录下bee-form-group.css
<link rel="stylesheet" href="./node_modules/build/bee-form-group.css">
  • 可以在js中import样式
import "./node_modules/src/FormGroup.scss"
//或是
import "./node_modules/build/bee-form-group.css"

API

参数 说明 类型 默认值
validationState oneOf:success error warning string ''

Dependents (4)

Package Sidebar

Install

npm i bee-form-group

Weekly Downloads

70

Version

2.0.1

License

MIT

Unpacked Size

13.8 kB

Total Files

15

Last publish

Collaborators

  • duxue
  • jwangyangls
  • shaohlr
  • honely1314
  • xiaoshutong
  • yonyoufed
  • jonyw
  • guoyongfeng
  • kvkens
  • whizbz
  • npm_yx
  • bjyxszd
  • tinper-bot
  • houjitong
  • gaox2025f
  • gcht163
  • cnkvkens
  • diozhu
  • wangjings123
  • ahua52