Add Dot component
This commit is contained in:
1 parent
08d1a85f9a
commit
66e61fc8be
1 file changed
+23
@@ -0,0 +1,23 @@
|
|||||||
|
import PropTypes from "prop-types";
|
||||||
|
|
||||||
|
const Dot = ({ color = "gray", size = "4px" }) => {
|
||||||
|
return (
|
||||||
|
<span
|
||||||
|
style={{
|
||||||
|
content: '""',
|
||||||
|
width: size,
|
||||||
|
height: size,
|
||||||
|
borderRadius: "50%",
|
||||||
|
backgroundColor: color,
|
||||||
|
opacity: 0.8,
|
||||||
|
}}
|
||||||
|
/>
|
||||||
|
);
|
||||||
|
};
|
||||||
|
|
||||||
|
Dot.propTypes = {
|
||||||
|
color: PropTypes.string,
|
||||||
|
size: PropTypes.string,
|
||||||
|
};
|
||||||
|
|
||||||
|
export default Dot;
|
||||||
Reference in new issue
Block a user