phenomic
Version:
Modern website generator based on the React and Webpack ecosystem.
31 lines (25 loc) • 627 B
JavaScript
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,
[]: true,
[]: secondary,
[]: light,
[]: big,
}) }
/>
)
Button.propTypes = {
children: PropTypes.node,
className: PropTypes.string,
secondary: PropTypes.bool,
light: PropTypes.bool,
big: PropTypes.bool,
}
Button.displayName = "Button"
export default Button