mirror of
https://github.com/kremalicious/umami.git
synced 2024-11-15 09:45:04 +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 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;
|
||||
|
Loading…
Reference in New Issue
Block a user