Illustrative Mathematics® Learn Math for life
Components/Typography

Heading Title

A flexible heading component that supports multiple levels and sizes

done

Overview

The HeadingTitle component is a versatile typography component used to render headings with consistent styling across the application. It serves as the main body of a heading group, typically positioned between an Overline (above) and a Subheading (below).

This component is typically used as a child of HeadingWrapper, which provides consistent spacing and layout for heading group components: Overline, HeadingTitle, and Subheading.

Examples

Basic Usage

Page Title

Levels

The level prop determines the semantic HTML element that is rendered on the page. For example, level="1" renders an <h1> tag, level="2" renders an <h2> tag, and so on. This ensures proper document structure and accessibility while allowing visual style to be controlled independently via the size prop.

Heading Level 1

Heading Level 2

Heading Level 3

Heading Level 4

Heading Level 5
Heading Level 6

Sizes

Available sizes range from xs to 2xl, allowing for visual hierarchy independent of the semantic heading level.

2xl Size

xl Size

lg Size

md Size

sm Size

xs Size

Custom Styling

You can apply custom styles using the className prop.

Custom Styled Heading

Import

import { HeadingTitle } from '@im/integral/components/styled';

Props

PropTypeDefault
className?
string
-
children
React.ReactNode
-
size
"2xl" | "xl" | "lg" | "md" | "sm" | "xs"
-
level
"1" | "2" | "3" | "4" | "5" | "6"
-