index.js 324 Bytes
Newer Older
zhanghaozhe committed
1 2
import React from "react"
import "./button.scss"
zhanghaozhe committed
3

zhanghaozhe committed
4
import classnames from "classnames"
zhanghaozhe committed
5

zhanghaozhe committed
6 7 8 9 10 11 12 13 14 15
const Button = ({ children, active, className, ...rest }) => {
  return (
    <button
      className={classnames("custom-button", className, { active })}
      {...rest}
    >
      {children}
    </button>
  )
}
zhanghaozhe committed
16

zhanghaozhe committed
17
export default Button