@coreui/react
Version:
UI Components Library for React.js
19 lines (16 loc) • 759 B
JavaScript
import { __rest, __assign } from '../../node_modules/tslib/tslib.es6.js';
import React, { forwardRef } from 'react';
import PropTypes from 'prop-types';
import classNames from '../../_virtual/index.js';
var CForm = forwardRef(function (_a, ref) {
var children = _a.children, className = _a.className, validated = _a.validated, rest = __rest(_a, ["children", "className", "validated"]);
return (React.createElement("form", __assign({ className: classNames({ 'was-validated': validated }, className) || undefined }, rest, { ref: ref }), children));
});
CForm.propTypes = {
children: PropTypes.node,
className: PropTypes.string,
validated: PropTypes.bool,
};
CForm.displayName = 'CForm';
export { CForm };
//# sourceMappingURL=CForm.js.map