UNPKG

polaris-glints

Version:

Glints forked polaris react

23 lines (20 loc) 597 B
import React from 'react'; import styles from './Subheading.scss.js'; /** * @deprecated The Subheading 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 Subheading({ element: Element = 'h3', children }) { const ariaLabel = typeof children === 'string' ? children : undefined; return /*#__PURE__*/React.createElement(Element, { "aria-label": ariaLabel, className: styles.Subheading }, children); } export { Subheading };