Skip to content

Commit 23a735d

Browse files
author
Marcella Malune
committed
Merge branch 'checkbox' of github.com:marcellamalune/ethereum-org-website into checkbox
2 parents d2d8b88 + 9d77784 commit 23a735d

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

src/components/Checkbox.tsx

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import React from "react"
22
import { Box, VisuallyHiddenInput, Text } from "@chakra-ui/react"
33

4+
// Props
45
export interface IProps {
56
children?: React.ReactNode
67
callback?: () => void
@@ -9,6 +10,7 @@ export interface IProps {
910
size?: number
1011
}
1112

13+
// Checkbox
1214
const Checkbox: React.FC<IProps> = ({
1315
callback,
1416
checked,
@@ -17,6 +19,17 @@ const Checkbox: React.FC<IProps> = ({
1719
size = 2,
1820
...rest
1921
}) => {
22+
console.log({
23+
checkboxProps: {
24+
callback,
25+
checked,
26+
children,
27+
className,
28+
size,
29+
...rest,
30+
},
31+
})
32+
2033
const handleClick = () => {
2134
if (callback) {
2235
callback()

0 commit comments

Comments
 (0)