import React from 'react'; import type { ReactNode } from 'react'; import type { Preset } from '../../util/variant-types'; export type HeadingElement = 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6'; /** * `import {Heading} from "@chanzuckerberg/eds";` * * A component for styling heading text (`

`-`

`). * * Be careful to pass the correct heading element via the `as` prop to avoid skipping heading levels because [heading levels increasing by only one level at a time is important for screen reader users.](https://www.w3.org/WAI/tutorials/page-structure/headings/) */ export declare const Heading: React.ForwardRefExoticComponent & { /** * This prop can be used to specify which level heading should * actually be rendered, in the case that you want to render an element * as one heading but style it as if it were another. * * **Default is `"h1"`**. */ as?: HeadingElement; /** * The contents of the header tag, usually just text, but can include other content. */ children: ReactNode; /** * Additional classnames passed in for styling. */ className?: string; /** * The specified tab index of the heading element (used for focusing in tabbing) */ tabIndex?: number; /** * Prop to set the desired typography value used in design. Acceptable values * match those used across the design system. * * For details, see https://chanzuckerberg.github.io/edu-design-system/?path=/story/design-tokens-tier-2-usage--typography */ preset?: Preset; } & React.RefAttributes>;