UNPKG

@shopify/polaris

Version:

Shopify’s product component library

16 lines (13 loc) 368 B
import React$1 from 'react'; import styles from './Subheading.scss.js'; function Subheading({ element: Element = 'h3', children }) { var ariaLabel = typeof children === 'string' ? children : undefined; return /*#__PURE__*/React$1.createElement(Element, { "aria-label": ariaLabel, className: styles.Subheading }, children); } export { Subheading };