You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
RELOG/relog-web/src/Button.js

22 lines
507 B

import styles from './Button.module.css';
const Button = (props) => {
let className = styles.Button;
if (props.kind === "inline") {
className += " " + styles.inline;
}
let tooltip = "";
if (props.tooltip != undefined) {
tooltip = <span className={styles.tooltip}>{props.tooltip}</span>;
}
return (
<button className={className} onClick={props.onClick}>
{tooltip}
{props.label}
</button>
);
};
export default Button;