feature(components): prop-type Dot component

This commit is contained in:
Alexander Klein 2021-02-16 12:50:27 +01:00
parent 66154ac233
commit 303fffbc40

View File

@ -1,8 +1,9 @@
import React from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import styles from './Dot.module.css';
export default function Dot({ color, size, className }) {
function Dot({ color, size, className }) {
return (
<div className={styles.wrapper}>
<div
@ -15,3 +16,11 @@ export default function Dot({ color, size, className }) {
</div>
);
}
Dot.propTypes = {
color: PropTypes.string,
size: PropTypes.oneOf(['small', 'large']),
className: PropTypes.string,
};
export default Dot;