Personal-site/components/Button.js

16 lines
324 B
JavaScript
Raw Permalink Normal View History

2020-06-14 09:06:49 +00:00
import React from "react";
import PropTypes from "prop-types";
import styles from "./modules/Button.module.css";
export default function Example(props) {
return (
2020-06-14 14:20:45 +00:00
<button className={styles.container} {...props}>
2020-06-14 09:06:49 +00:00
{props.label}
</button>
);
}
Example.propTypes = {
label: PropTypes.string.isRequired,
};