Skip to content

Latest commit

 

History

History
47 lines (34 loc) · 1.84 KB

README.md

File metadata and controls

47 lines (34 loc) · 1.84 KB

QJ-Button

react component button NPM version Build Status

Install

npm install qj-button

qj-button

Usage

import React from 'react';
import ReactDOM from 'react-dom';
import Button from 'qj-button'
import 'qj-button/style.css'

const element = document.getElementById('root');

ReactDOM.render(<Button>button</Button>, element);

API

Button

Name Type Default Description
prefixCls string 'qj-button' prefixCls of this component
children string/node
type string 'default' type of style
disabled bool false disable click event
group bool false button is in group
inline bool false button is inline
loading bool false button is loading and disable
activeClassName string 'qj-button-active custom pressed className
iconClass string null className of icon
className string '' custom className
onClick func ()=>{} callback after click