Files
Checkmate/client/src/Components/Dot/index.jsx
T

24 lines
377 B
React
Raw Normal View History

2025-02-18 09:47:54 -08:00
import PropTypes from "prop-types";
2025-02-20 11:47:30 -08:00
const Dot = ({ color = "gray", size = "4px", style }) => {
2025-02-18 09:47:54 -08:00
return (
<span
style={{
content: '""',
width: size,
height: size,
borderRadius: "50%",
backgroundColor: color,
opacity: 0.8,
2025-02-20 11:47:30 -08:00
...style,
2025-02-18 09:47:54 -08:00
}}
/>
);
};
Dot.propTypes = {
color: PropTypes.string,
size: PropTypes.string,
};
export default Dot;