1
0
mirror of https://github.com/phuoc-ng/csslayout.git synced 2025-08-31 01:29:53 +02:00

Add custom checkbox button

This commit is contained in:
Phuoc Nguyen
2019-12-01 20:02:39 +07:00
parent dc24bd5182
commit 5e122251a4
7 changed files with 251 additions and 3 deletions

View File

@@ -1,14 +1,18 @@
import React from 'react';
interface SquareProps {
backgroundColor?: string;
size?: number;
}
const Square: React.FC<SquareProps> = ({ size = 8 }) => {
const Square: React.FC<SquareProps> = ({
backgroundColor = 'rgba(0, 0, 0, 0.3)',
size = 8,
}) => {
return (
<div
style={{
backgroundColor: 'rgba(0, 0, 0, 0.3)',
backgroundColor,
borderRadius: '4px',
height: '100%',
width: '100%',