-
-
Save KTruong008/63e50bef1d020d9acae95ea90946b32d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from 'react'; | |
export const Checkbox = props => { | |
return ( | |
<div className="flex items-center mv4 w-100"> | |
<input | |
{...props.input} | |
className="mr2" | |
type="checkbox" | |
checked={props.input.value} | |
/> | |
<div className="sans-serif">{props.label}</div> | |
</div> | |
); | |
} | |
export default Checkbox; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment