Advertisement
Guest User

Untitled

a guest
Jul 18th, 2019
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. import React from "react";
  2. import classNames from "classnames";
  3. import styles from "./text-input.module.css";
  4.  
  5. const TextInput = props => {
  6. return (
  7. <input
  8. className={classNames({
  9. [styles["text-input"]]: true,
  10. [styles["warning"]]: props.hasWarning,
  11. [styles["error"]]: props.hasError,
  12. })}
  13. type="text"
  14. />
  15. );
  16. };
  17.  
  18. export default TextInput;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement