mirror of
https://github.com/phuoc-ng/csslayout.git
synced 2025-08-31 09:31:43 +02:00
Add custom radio button
This commit is contained in:
@@ -1,14 +1,18 @@
|
||||
import React from 'react';
|
||||
|
||||
interface CircleProps {
|
||||
backgroundColor?: string;
|
||||
size?: number;
|
||||
}
|
||||
|
||||
const Circle: React.FC<CircleProps> = ({ size = 16 }) => {
|
||||
const Circle: React.FC<CircleProps> = ({
|
||||
backgroundColor = 'rgba(0, 0, 0, .3)',
|
||||
size = 16,
|
||||
}) => {
|
||||
return (
|
||||
<div
|
||||
style={{
|
||||
backgroundColor: 'rgba(0, 0, 0, .3)',
|
||||
backgroundColor,
|
||||
borderRadius: '9999px',
|
||||
height: `${size}px`,
|
||||
width: `${size}px`,
|
||||
|
Reference in New Issue
Block a user