import { objectWithoutProperties as _objectWithoutProperties } from '../../../_virtual/_rollupPluginBabelHelpers.js';
import { createElement } from 'react';
import _pt from 'prop-types';

function BaseHeading(props) {
  var children = props.children,
      _props$as = props.as,
      Component = _props$as === void 0 ? "h1" : _props$as,
      rest = _objectWithoutProperties(props, ["children", "as"]);

  return /*#__PURE__*/createElement(Component, rest, children);
}
BaseHeading.propTypes = {
  as: _pt.oneOf(["h1", "h2", "h3", "h4", "h5", "h6", "span"])
};
BaseHeading.__docgenInfo = {
  "description": "",
  "methods": [],
  "displayName": "BaseHeading",
  "props": {
    "as": {
      "required": false,
      "tsType": {
        "name": "union",
        "raw": "\"h1\" | \"h2\" | \"h3\" | \"h4\" | \"h5\" | \"h6\" | \"span\"",
        "elements": [{
          "name": "literal",
          "value": "\"h1\""
        }, {
          "name": "literal",
          "value": "\"h2\""
        }, {
          "name": "literal",
          "value": "\"h3\""
        }, {
          "name": "literal",
          "value": "\"h4\""
        }, {
          "name": "literal",
          "value": "\"h5\""
        }, {
          "name": "literal",
          "value": "\"h6\""
        }, {
          "name": "literal",
          "value": "\"span\""
        }]
      },
      "description": ""
    }
  }
};

if (typeof STORYBOOK_REACT_CLASSES !== "undefined") {
  STORYBOOK_REACT_CLASSES["src/components/BaseHeading/BaseHeading.tsx"] = {
    name: "BaseHeading",
    docgenInfo: BaseHeading.__docgenInfo,
    path: "src/components/BaseHeading/BaseHeading.tsx"
  };
}

export { BaseHeading };
//# sourceMappingURL=BaseHeading.esm.js.map
