@coreui/react
Version:
UI Components Library for React.js
20 lines (17 loc) • 823 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 CFooter = forwardRef(function (_a, ref) {
var _b;
var children = _a.children, className = _a.className, position = _a.position, rest = __rest(_a, ["children", "className", "position"]);
return (React.createElement("div", __assign({ className: classNames('footer', (_b = {}, _b["footer-".concat(position)] = position, _b), className) }, rest, { ref: ref }), children));
});
CFooter.propTypes = {
children: PropTypes.node,
className: PropTypes.string,
position: PropTypes.oneOf(['fixed', 'sticky']),
};
CFooter.displayName = 'CFooter';
export { CFooter };
//# sourceMappingURL=CFooter.js.map