UNPKG

@dnb/eufemia

Version:

DNB Eufemia Design System UI Library

16 lines (15 loc) 755 B
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 FormSubHeadingProps = ComponentProps & { /** * Define a specific level value to ensure correct level hierarchy. Defaults to `3`. */ level?: HeadingLevel; /** Configuration for an inline help button shown next to the heading. */ help?: HelpProps; children?: ReactNode; } & Omit<HTMLProps<HTMLElement>, 'size'>; declare function SubHeading({ level, ...props }: FormSubHeadingProps): import("react/jsx-runtime").JSX.Element; export default SubHeading;