Skip to content

Instantly share code, notes, and snippets.

@KTruong008
Created September 17, 2017 22:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save KTruong008/63e50bef1d020d9acae95ea90946b32d to your computer and use it in GitHub Desktop.
Save KTruong008/63e50bef1d020d9acae95ea90946b32d to your computer and use it in GitHub Desktop.
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