UNPKG

@dnb/eufemia

Version:

DNB Eufemia Design System UI Library

14 lines (13 loc) 705 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 FormSubHeadingProps = ComponentProps & { /** The heading level to render (h2–h6). Defaults to `3`. */ 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 SubHeading({ level, ...props }: FormSubHeadingProps): import("react/jsx-runtime").JSX.Element; export default SubHeading;