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:
@@ -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%',
|
||||
|
Reference in New Issue
Block a user