Skip to content

Instantly share code, notes, and snippets.

@nicholasess
Created June 30, 2018 23:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nicholasess/c39d62adc7d50bfa9fdea0cf86e8ef5c to your computer and use it in GitHub Desktop.
Save nicholasess/c39d62adc7d50bfa9fdea0cf86e8ef5c to your computer and use it in GitHub Desktop.
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