You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

20 lines
822 B

  1. import _extends from "@babel/runtime/helpers/esm/extends";
  2. import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
  3. import classNames from 'classnames';
  4. import React from 'react';
  5. import { useBootstrapPrefix } from './ThemeProvider';
  6. var TabContent = React.forwardRef(function (_ref, ref) {
  7. var bsPrefix = _ref.bsPrefix,
  8. _ref$as = _ref.as,
  9. Component = _ref$as === void 0 ? 'div' : _ref$as,
  10. className = _ref.className,
  11. props = _objectWithoutPropertiesLoose(_ref, ["bsPrefix", "as", "className"]);
  12. var decoratedBsPrefix = useBootstrapPrefix(bsPrefix, 'tab-content');
  13. return /*#__PURE__*/React.createElement(Component, _extends({
  14. ref: ref
  15. }, props, {
  16. className: classNames(className, decoratedBsPrefix)
  17. }));
  18. });
  19. export default TabContent;