Commit a87e55a5 by zhanghaozhe

button

parent 7632e1a0
......@@ -3,9 +3,9 @@ import './button.scss'
import classnames from 'classnames'
const Button = ({children, active, ...rest}) => {
const Button = ({children, active, className, ...rest}) => {
return (
<button className={classnames('custom-button', {active})} {...rest}>
<button className={classnames('custom-button', className, {active})} {...rest}>
{children}
</button>
);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment