Created
July 31, 2018 22:39
-
-
Save grantglidewell/6f18bcb18ef81edaa179f0ad4bfbff9e 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
Usage: | |
<Input name="name" placeholder="Name" disabled /> | |
<Input | |
name="name" | |
autoComplete="off" | |
placeholder="Name (autocomplete disabled)" | |
/> | |
Code: | |
export function Input(props) { | |
if (props.disabled) { | |
props["disabled"] = "disabled"; | |
} | |
return <input {...props} className={cx(styles.Input, props.className)} />; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment