UNPKG

polaris-glints

Version:

Glints forked polaris react

23 lines (22 loc) 791 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; } /** * @deprecated The Heading component will be removed in the next * major version. Use the Text component instead. See the * Polaris component guide on how to use Text. * * https://polaris.shopify.com/components/text */ export declare function Heading({ element: Element, children, id }: HeadingProps): JSX.Element; //# sourceMappingURL=Heading.d.ts.map