Skip to content

Instantly share code, notes, and snippets.

Created June 30, 2018 23:55
What would you like to do?
const Button = ({ children, type, outline, rounded }) => (
<ButtonStyle type={type} outline={outline} rounded={rounded}>
Button.propTypes = {
type: pT.string,
outline: pT.bool,
rounded: pT.bool
Button.defaultProps = {
type: "primary",
outline: false,
rounded: false
export default Button;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment