We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents d2d8b88 + 9d77784 commit 23a735dCopy full SHA for 23a735d
src/components/Checkbox.tsx
@@ -1,6 +1,7 @@
1
import React from "react"
2
import { Box, VisuallyHiddenInput, Text } from "@chakra-ui/react"
3
4
+// Props
5
export interface IProps {
6
children?: React.ReactNode
7
callback?: () => void
@@ -9,6 +10,7 @@ export interface IProps {
9
10
size?: number
11
}
12
13
+// Checkbox
14
const Checkbox: React.FC<IProps> = ({
15
callback,
16
checked,
@@ -17,6 +19,17 @@ const Checkbox: React.FC<IProps> = ({
17
19
size = 2,
18
20
...rest
21
}) => {
22
+ console.log({
23
+ checkboxProps: {
24
+ callback,
25
+ checked,
26
+ children,
27
+ className,
28
+ size,
29
+ ...rest,
30
+ },
31
+ })
32
+
33
const handleClick = () => {
34
if (callback) {
35
callback()
0 commit comments