@coreui/react-pro
Version:
UI Components Library for React.js
22 lines (19 loc) • 801 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';
import { colorPropType } from '../../props.js';
const CTableBody = forwardRef((_a, ref) => {
var { children, className, color } = _a, rest = __rest(_a, ["children", "className", "color"]);
return (React.createElement("tbody", Object.assign({ className: classNames({
[`table-${color}`]: color,
}, className) || undefined }, rest, { ref: ref }), children));
});
CTableBody.propTypes = {
children: PropTypes.node,
className: PropTypes.string,
color: colorPropType,
};
CTableBody.displayName = 'CTableBody';
export { CTableBody };
//# sourceMappingURL=CTableBody.js.map