buttonloading

Made with create-react-library

Usage no npm install needed!

<script type="module">
  import buttonloading from 'https://cdn.skypack.dev/buttonloading';
</script>

README

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