@coreui/react-pro
Version:
UI Components Library for React.js
21 lines (17 loc) • 744 B
JavaScript
;
var tslib_es6 = require('../../node_modules/tslib/tslib.es6.js');
var React = require('react');
var PropTypes = require('prop-types');
var index = require('../../_virtual/index.js');
const CForm = React.forwardRef((_a, ref) => {
var { children, className, validated } = _a, rest = tslib_es6.__rest(_a, ["children", "className", "validated"]);
return (React.createElement("form", Object.assign({ className: index.default({ 'was-validated': validated }, className) || undefined }, rest, { ref: ref }), children));
});
CForm.propTypes = {
children: PropTypes.node,
className: PropTypes.string,
validated: PropTypes.bool,
};
CForm.displayName = 'CForm';
exports.CForm = CForm;
//# sourceMappingURL=CForm.js.map