🚨 Shai-Hulud Strikes Again:834 Packages Compromised.Technical Analysis
Socket
Book a DemoInstallSign in
Socket

bee-form-group

Package Overview
Dependencies
Maintainers
15
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bee-form-group

bee-form-group ui component for react

latest
Source
npmnpm
Version
2.0.1
Version published
Maintainers
15
Created
Source

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

参数说明类型默认值
validationStateoneOf:success error warningstring''

Keywords

react

FAQs

Package last updated on 24 Apr 2020

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