Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import React from "react";
- import classNames from "classnames";
- import styles from "./text-input.module.css";
- const TextInput = props => {
- return (
- <input
- className={classNames({
- [styles["text-input"]]: true,
- [styles["warning"]]: props.hasWarning,
- [styles["error"]]: props.hasError,
- })}
- type="text"
- />
- );
- };
- export default TextInput;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement