README
buttonloading
Made with create-react-library
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