mirror of
https://github.com/phuoc-ng/csslayout.git
synced 2025-10-24 19:26:26 +02:00
21 lines
407 B
TypeScript
21 lines
407 B
TypeScript
import React from 'react';
|
|
|
|
interface CircleProps {
|
|
size?: number;
|
|
}
|
|
|
|
const Circle: React.FC<CircleProps> = ({ size = 16 }) => {
|
|
return (
|
|
<div
|
|
style={{
|
|
backgroundColor: 'rgba(0, 0, 0, .3)',
|
|
borderRadius: '9999px',
|
|
height: `${size}px`,
|
|
width: `${size}px`,
|
|
}}
|
|
/>
|
|
);
|
|
};
|
|
|
|
export default Circle;
|