qj-button

1.0.5 • Public • Published

QJ-Button

react component button NPM version Build Status

Install

npm install 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

Package Sidebar

Install

npm i qj-button

Weekly Downloads

2

Version

1.0.5

License

MIT

Last publish

Collaborators

  • aus0049