Untitled

mail@pastecode.io avatar
unknown
plain_text
3 years ago
442 B
1
Indexable
Never
import React from "react";
import Input from "../Input";
import "./styles.css";

const InputField = ({ label = 'Username', classes, ...inputProps }) => {
  const defaultClassNames = 'block text-sm font-medium text-gray-700';
  return (
    <div>
      <label for="email" className={`${defaultClassNames}`}>{label}</label>
      <div className="mt-1">
        <Input {...inputProps} />
      </div>
    </div>
  )
}

export default InputField;