Closed SimerdeepSinghGrewal closed 2 months ago
Can you also add this to your code as a block comment?
label: to specify the text label associated with the checkbox.
checked: to determine whether the checkbox is initially checked.
onChange: to handle the change event when the checkbox is clicked.
variant: to define the checkbox style (e.g., primary, secondary).
className: to apply additional CSS classes.
style: to apply inline styles.
Can you also add this to your code as a block comment?
label: to specify the text label associated with the checkbox. checked: to determine whether the checkbox is initially checked. onChange: to handle the change event when the checkbox is clicked. variant: to define the checkbox style (e.g., primary, secondary). className: to apply additional CSS classes. style: to apply inline styles.
Thank you for this, I was thinking to add comments but then forgot.
I have created a new Checkbox component to accept the following props: label: to specify the text label associated with the checkbox. checked: to determine whether the checkbox is initially checked. onChange: to handle the change event when the checkbox is clicked. variant: to define the checkbox style (e.g., primary, secondary). className: to apply additional CSS classes. style: to apply inline styles. the component can handle different types of checkboxes, such as primary, secondary, etc. I have tested everything as well, check screenshot