@hackplan/polaris
Version:
Shopify’s product component library
13 lines (12 loc) • 378 B
TypeScript
import React from 'react';
import { HeadingTagName } from '../../types';
export interface Props {
/**
* The element name to use for the subheading
* @default 'h3'
*/
element?: HeadingTagName;
/** Text to display in subheading */
children?: React.ReactNode;
}
export default function Subheading({ element: Element, children }: Props): JSX.Element;