@coreui/react-pro
Version:
UI Components Library for React.js
19 lines (16 loc) • 715 B
JavaScript
import { __rest } from '../../node_modules/tslib/tslib.es6.js';
import React, { forwardRef } from 'react';
import PropTypes from 'prop-types';
import classNames from '../../_virtual/index.js';
const CForm = forwardRef((_a, ref) => {
var { children, className, validated } = _a, rest = __rest(_a, ["children", "className", "validated"]);
return (React.createElement("form", Object.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