react-material-spinner
Version:
A material design based spinner react component
36 lines (30 loc) • 646 B
JavaScript
import React, { PropTypes } from 'react';
export default class MDSpinner extends React.Component {
static propTypes: {
width: PropTypes.string,
height: PropTypes.string,
borderColor: PropTypes.string
};
constructor(props) {
super(props);
}
render() {
const {show} = this.state;
const mdStyles = {
width: this.props.width,
height: this.props.height,
borderColor: this.props.borderColor
};
return (
<div
className='md-spinner'
style={mdStyles}
</div>
);
}
};
MDSpinner.defaultProps = {
width: '15px',
height: '15px',
borderColor: '#4285f4'
};