UNPKG

@dnb/eufemia

Version:

DNB Eufemia Design System UI Library

14 lines (13 loc) 709 B
import React from 'react'; import type { HelpProps } from '../../../../components/help-button/HelpButtonInline'; import type { HeadingLevel } from '../../../../components/heading/Heading'; import type { ComponentProps } from '../../types'; export type FormMainHeadingProps = ComponentProps & { /** The heading level to render (h2–h6). Defaults to `2`. */ level?: HeadingLevel; /** Configuration for an inline help button shown next to the heading. */ help?: HelpProps; children?: React.ReactNode; } & Omit<React.HTMLProps<HTMLElement>, 'size'>; declare function MainHeading({ level, ...props }: FormMainHeadingProps): import("react/jsx-runtime").JSX.Element; export default MainHeading;