# give/4.16.9/src/Views/Components/Button/index.js

GiveWP – Donation Plugin and Fundraising Platform, version 4.16.9. 19 lines.

- Page: https://pluginprobe.com/plugins/give/4.16.9/code/src/Views/Components/Button/index.js
- Raw: https://pluginprobe.com/plugins/give/4.16.9/raw/src/Views/Components/Button/index.js
- Modified: 2025-05-01T11:56:08+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/give/4.16.9/code/src/Views/Components/Button/index.js#L10-L20`.

```javascript
import classNames from 'classnames';

import styles from './style.module.scss';

const Button = ({children, onClick, icon, ...rest}) => {
    const classes = classNames({
        [styles.button]: true,
        [styles.icon]: icon,
    });

    return (
        <button className={classes} onClick={onClick} {...rest}>
            {children}
        </button>
    );
};

export default Button;

```
