Skip to content

Instantly share code, notes, and snippets.

@amsheehan
Created February 6, 2018 18:57
Show Gist options
  • Save amsheehan/79c1cc547bbbfaeb0f04527c43d5506b to your computer and use it in GitHub Desktop.
Save amsheehan/79c1cc547bbbfaeb0f04527c43d5506b to your computer and use it in GitHub Desktop.
import React from 'react';
import PropTypes from 'prop-types';
import "@material/button/mdc-button.scss";
const Button = ({stroked, label}) => {
const classes = `mdc-button ${stroked ? 'mdc-button--stroked' : ''}`;
return (
<button
className={classes}>
{label}
</button>
);
}
Button.propTypes = {
stroked: PropTypes.bool,
label: PropTypes.string,
}
Button.defaultProps = {
stroked: false,
label: '',
}
export default Button;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment