@combine-labs/combine-polaris
Version:
Combine Lab's product component library. Forked from Shopify's Polaris.
13 lines (12 loc) • 389 B
TypeScript
import * as 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;