buttonloading

0.1.1 • Public • Published

buttonloading

Made with create-react-library

NPM JavaScript Style Guide

Install

npm install --save buttonloading

Usage

import React, { Component } from 'react'

import {LoadingButton} from 'buttonloading'
import 'buttonloading/dist/index.css'

class Example extends Component {
  render() {
    return <LoadingButton />
  }
}

This component use @material-ui/core button and can take its arguments. Also use CircularProgress from the @material-ui/core and it can take progressprops to porps CircularProgress

such as

const [isbusy,setBusy] = useState(true)
const progressprops = {color:"primary", size:24}

//
  <LoadingButton color="primary" progressprops={progressprops} isbusy={isbusy} onClick={handleClick}> TEXT OF BUTTON </LoadingButton>

PeerDependency Do not use it if you are not already using @material-ui/core

REPO https://github.com/devburak/mui-components/

License

MIT © Burak İmrek

Readme

Keywords

none

Package Sidebar

Install

npm i buttonloading

Weekly Downloads

2

Version

0.1.1

License

MIT

Unpacked Size

6.93 kB

Total Files

7

Last publish

Collaborators

  • devburak