MCPcopy Index your code
hub / github.com/docker/getting-started / createWithBsPrefix

Function createWithBsPrefix

app/src/static/js/react-bootstrap.js:9715–9746  ·  view source on GitHub ↗
(prefix, _temp)

Source from the content-addressed store, hash-verified

9713};
9714
9715function createWithBsPrefix(prefix, _temp) {
9716 var _ref = _temp === void 0 ? {} : _temp,
9717 _ref$displayName = _ref.displayName,
9718 displayName = _ref$displayName === void 0 ? createWithBsPrefix_pascalCase(prefix) : _ref$displayName,
9719 _ref$Component = _ref.Component,
9720 Component = _ref$Component === void 0 ? 'div' : _ref$Component,
9721 defaultProps = _ref.defaultProps;
9722
9723 var BsComponent = external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.forwardRef( // eslint-disable-next-line react/prop-types
9724 function (_ref2, ref) {
9725 var className = _ref2.className,
9726 bsPrefix = _ref2.bsPrefix,
9727 _ref2$as = _ref2.as,
9728 Tag = _ref2$as === void 0 ? Component : _ref2$as,
9729 props = _objectWithoutPropertiesLoose(_ref2, ["className", "bsPrefix", "as"]);
9730
9731 var resolvedPrefix = useBootstrapPrefix(bsPrefix, prefix);
9732 return external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement(Tag, _extends({
9733 ref: ref,
9734 className: classnames_default()(className, resolvedPrefix)
9735 }, props, {
9736 __source: {
9737 fileName: createWithBsPrefix_jsxFileName,
9738 lineNumber: 18
9739 },
9740 __self: this
9741 }));
9742 });
9743 BsComponent.defaultProps = defaultProps;
9744 BsComponent.displayName = displayName;
9745 return BsComponent;
9746}
9747// CONCATENATED MODULE: ./src/utils/divWithClassName.js
9748
9749var divWithClassName_jsxFileName = "/Users/jason/src/react-bootstrap/src/utils/divWithClassName.js";

Callers 1

react-bootstrap.jsFile · 0.85

Calls 4

useBootstrapPrefixFunction · 0.85
_extendsFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…