UNPKG

@shopify/polaris

Version:

Shopify’s admin product component library

15 lines (14 loc) 517 B
import React from 'react'; import { HeadingTagName } from '../../types'; export interface HeadingProps { /** * The element name to use for the heading * @default 'h2' */ element?: HeadingTagName; /** The content to display inside the heading */ children?: React.ReactNode; /** A unique identifier for the heading, used for reference in anchor links */ id?: string; } export declare function Heading({ element: Element, children, id }: HeadingProps): JSX.Element;