1
0
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:
Phuoc Nguyen
2019-12-01 19:05:22 +07:00
parent fba9e42023
commit 3a57915833
27 changed files with 288 additions and 37 deletions

View File

@@ -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`,