UNPKG

@coreui/react

Version:

UI Components Library for React.js

22 lines (18 loc) 854 B
'use strict'; 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'); var CFooter = React.forwardRef(function (_a, ref) { var _b; var children = _a.children, className = _a.className, position = _a.position, rest = tslib_es6.__rest(_a, ["children", "className", "position"]); return (React.createElement("div", tslib_es6.__assign({ className: index.default('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'; exports.CFooter = CFooter; //# sourceMappingURL=CFooter.js.map