mirror of
https://github.com/wassname/talk.git
synced 2026-07-02 01:21:14 +08:00
20 lines
395 B
JavaScript
20 lines
395 B
JavaScript
import React from 'react';
|
|
import styles from './Button.css';
|
|
|
|
const Button = ({cStyle = 'local', children, className, raised, full, ...props}) => (
|
|
<button
|
|
className={`
|
|
${styles.button}
|
|
${styles[`type--${cStyle}`]}
|
|
${className}
|
|
${full && styles.full}
|
|
${raised && styles.button}
|
|
`}
|
|
{...props}
|
|
>
|
|
{children}
|
|
</button>
|
|
);
|
|
|
|
export default Button;
|