Skip to content

Aus0049/qj-button

Repository files navigation

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

About

QJYD React Button

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published