igakim/mcs-ui

View on GitHub
src/components/form/Input.jsx

Summary

Maintainability
A
0 mins
Test Coverage
import React from 'react';

const Input = (props) => {
  const {
    className, value, defaultValue, ...rest
  } = props;

  const userClasses = className || '';

  return (
    <input className={`mcs-form-input ${userClasses}`} {...value} {...rest} />
  );
};

export default Input;