Skip to content

Instantly share code, notes, and snippets.

@grantglidewell
Last active August 1, 2018 21:23
Show Gist options
  • Save grantglidewell/35d6d51fa2e534cddeef16175abbc879 to your computer and use it in GitHub Desktop.
Save grantglidewell/35d6d51fa2e534cddeef16175abbc879 to your computer and use it in GitHub Desktop.
export function Toggle(props) {
return (
<label className={styles.switch}>
<input {...props} type="checkbox" />
<span className={styles.slider} />
</label>
);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment