index.js 324 Bytes
Newer Older
zhanghaozhe committed
1 2 3 4 5
import React from 'react';
import './button.scss'

import classnames from 'classnames'

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

export default Button;