react-formian
Version:
A React framework for easily creating and handling controlled forms
16 lines (12 loc) • 308 B
JSX
import React from 'react';
import PropTypes from 'prop-types';
const Container = ({type, className, style, children}) => (
<div className={`input-container ${type} ${className}`} style={style}>
{children}
</div>
);
Container.defaultProps = {
type: "text",
classname: ""
};
export default Container;