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