UNPKG

@rws-aoa/react-library

Version:

RWS AOA Design System

27 lines 939 B
import { BoxProps } from '@mui/material'; import { PropsWithChildren, ReactNode } from 'react'; export interface AoaSectionHeaderProps extends Omit<BoxProps, 'title'> { /** * Data-qa tag for E2E test purposes */ readonly 'data-qa'?: string; /** * The content to show as subtitle, lighter grey and below the title */ readonly subtitle?: ReactNode; /** * The title to show in the first Typography component */ readonly title: ReactNode; } /** * Constructs a section header using pre-defined Rijks styling * * @param props - Props to pass to the section header * @example * ```jsx * <AoaSectionHeader title='This is a title' subtitle='And this is a subtitle' /> * ``` */ export declare function AoaSectionHeader({ title, subtitle, children, ...props }: PropsWithChildren<AoaSectionHeaderProps>): import("react/jsx-runtime").JSX.Element; //# sourceMappingURL=SectionHeader.d.ts.map