polaris-glints
Version:
Glints forked polaris react
31 lines (24 loc) • 808 B
JavaScript
;
Object.defineProperty(exports, '__esModule', { value: true });
var React = require('react');
var Heading$1 = require('./Heading.scss.js');
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
/**
* @deprecated The Heading component will be removed in the next
* major version. Use the Text component instead. See the
* Polaris component guide on how to use Text.
*
* https://polaris.shopify.com/components/text
*/
function Heading({
element: Element = 'h2',
children,
id
}) {
return /*#__PURE__*/React__default["default"].createElement(Element, {
className: Heading$1["default"].Heading,
id: id
}, children);
}
exports.Heading = Heading;