interface HeadingProps {
    centered?: boolean;
    children?: ReactNode;
    level: HeadingLevel;
    noBottomMargin?: boolean;
    noTopMargin?: boolean;
    styleLike?: HeadingLevel;
    truncate?: boolean;
    upperCased?: boolean;
}

Hierarchy

  • PropsWithChildren
    • HeadingProps

Properties

centered?: boolean
children?: ReactNode
noBottomMargin?: boolean
noTopMargin?: boolean
styleLike?: HeadingLevel

Use this to make the level smaller/larger than it would be according to the HTML tag. Used for a11y to not break the document outline.

truncate?: boolean

If true, the heading will be truncated with an ellipsis if it overflows.

upperCased?: boolean

If true, the heading will be upper-cased (using CSS for a11y reasons).