Skip to main content
H2
ImplementedLevel 2 heading for major sections.
Categoryatoms
Source
components/atoms/Heading/H2.tsxAI HintLevel-2 major-section heading rendered as a real h2 at the 3xl bold scale. Prefer the polymorphic Heading atom for new code.
Section heading. Renders <h2>. FR-CA: Titre de section (niveau 2).
H2
Typography atom (Family 2 — Tier 1)
Convenience wrapper around Heading with level locked to 2.
Événements à venir
Variante plus grande
This component supports light and dark mode.
Usage
import { H2 } from '@epasslive/design-system'
<H2 id="upcoming">Événements à venir</H2>
<H2>Statistiques</H2>Accessibility
Renders <h2>. Maintain sequential heading order. Use the id prop to anchor deep-link navigation.
Props
Prop
Type
Default
Description
children*React.ReactNode—
Heading content.
size1 | 2 | 3 | 4 | 5 | 6 | 'display'—
Visual scale token; defaults to the level (2).
classNamestring—
Additional classes.
idstring—
Anchor id.
Usage
Import
tsxSnippet
import { H2 } from "@epasslive/design-system"Example 1
tsxSnippet
<H2 />Example 2
tsxSnippet
<H2 variant="default" />Anti-patterns
— Do not compose atoms directly — use molecules instead
— Avoid inline styles on atoms