mirror of
https://github.com/kremalicious/umami.git
synced 2024-12-18 15:23:38 +01:00
feature(components): prop-type Dot component
This commit is contained in:
parent
66154ac233
commit
303fffbc40
@ -1,8 +1,9 @@
|
|||||||
import React from 'react';
|
import React from 'react';
|
||||||
|
import PropTypes from 'prop-types';
|
||||||
import classNames from 'classnames';
|
import classNames from 'classnames';
|
||||||
import styles from './Dot.module.css';
|
import styles from './Dot.module.css';
|
||||||
|
|
||||||
export default function Dot({ color, size, className }) {
|
function Dot({ color, size, className }) {
|
||||||
return (
|
return (
|
||||||
<div className={styles.wrapper}>
|
<div className={styles.wrapper}>
|
||||||
<div
|
<div
|
||||||
@ -15,3 +16,11 @@ export default function Dot({ color, size, className }) {
|
|||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Dot.propTypes = {
|
||||||
|
color: PropTypes.string,
|
||||||
|
size: PropTypes.oneOf(['small', 'large']),
|
||||||
|
className: PropTypes.string,
|
||||||
|
};
|
||||||
|
|
||||||
|
export default Dot;
|
||||||
|
Loading…
Reference in New Issue
Block a user