Skip to content

Instantly share code, notes, and snippets.

@nicholasess
Created June 30, 2018 23:55
Embed
What would you like to do?
const Button = ({ children, type, outline, rounded }) => (
<ButtonStyle type={type} outline={outline} rounded={rounded}>
{children}
</ButtonStyle>
);
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