@dnb/eufemia
Version:
DNB Eufemia Design System UI Library
16 lines (15 loc) • 759 B
TypeScript
import type { HTMLProps, ReactNode } 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 & {
/**
* Define a specific level value to ensure correct level hierarchy. Defaults to `2`.
*/
level?: HeadingLevel;
/** Configuration for an inline help button shown next to the heading. */
help?: HelpProps;
children?: ReactNode;
} & Omit<HTMLProps<HTMLElement>, 'size'>;
declare function MainHeading({ level, ...props }: FormMainHeadingProps): import("react/jsx-runtime").JSX.Element;
export default MainHeading;