---
id: portfolio.ds.reply-heading
name: "Reply Heading"
type: component
status: active
relations: [{"type":"composes","target":"portfolio.ds.heading"},{"type":"uses_token","target":"portfolio.ds.max-widths"}]
sources: ["packages/design-system/src/components/ReplyHeading.astro","apps/portfolio-site/src/design-system/docs/reply-heading.astro","apps/portfolio-site/src/lib/designSystemRegistry.ts"]
catalog: ["apps/portfolio-site/src/design-system/docs/reply-heading.astro"]
previews: ["apps/portfolio-site/src/design-system/docs/reply-heading.astro"]
---
# Reply Heading

## Purpose
Identify a section or subsection in an assistant answer.

## Contract
- Props: literal `text` and numeric `level` (2 or 3, default 2).
- Uses the shared Heading component for the native element, heading size, weight, line height and text color. It adds no wrapper or spacing.
- Both levels use `--measure-rich-text-subheading` as their maximum width. Long words without spaces wrap within that width.

## Use
Use H2 for a section and H3 for a subsection within it. Chat Assistant Message renders this child for authored heading blocks. Its mixed preview shows both levels alongside paragraphs; provider text is not parsed for headings.

## Do Not Use
Do not use as a page title or to emphasize a phrase inside a paragraph.

## Accessibility
The semantic level and the typography always match. Choose the level for the document hierarchy, not just for its size.

## Verification
Switch Level between H2 and H3 in the preview. Only the selected heading should be visible or exposed to assistive technology.

## Enabled Profile Records
- Registry ID: reply-heading.
- Canonical route: /design-system/reply-heading/.
