UNPKG

phenomic

Version:

Modern website generator based on the React and Webpack ecosystem.

31 lines (25 loc) 627 B
import React, { PropTypes } from "react" import cx from "classnames" import styles from "./index.css" const Button = ({ className, secondary, light, big, ...otherProps }) => ( <span role="button" { ...otherProps } className={ cx({ [className]: className, [styles.button]: true, [styles.secondary]: secondary, [styles.light]: light, [styles.big]: big, }) } /> ) Button.propTypes = { children: PropTypes.node, className: PropTypes.string, secondary: PropTypes.bool, light: PropTypes.bool, big: PropTypes.bool, } Button.displayName = "Button" export default Button