Skip to content

Instantly share code, notes, and snippets.

@KTruong008
Created September 17, 2017 22:06
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/f2abc564a765b2a765b287c7c4e9d82e to your computer and use it in GitHub Desktop.
Save KTruong008/f2abc564a765b2a765b287c7c4e9d82e to your computer and use it in GitHub Desktop.
import React from 'react';
export const Text = ({ label, input }) => {
return (
<div className="mv4 w-100">
<div className="b sans-serif pv2 w-100">
{label}
</div>
<input
{...input}
placeholder={label}
type="text"
className="pa2 ba b--black-40 w-100"
/>
</div>
);
}
export default Text;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment