reopt design
DocsExploreTemplatesCanvasToolsPricing
Login
opt-uiopt-chartsopt-datagridopt-editoropt-calendaropt-filemanageropt-chatopt-shellbrandapp-ui
Overview205Core74Shells99Blocks32
Heading
reopt designreopt design

A design system for the AI era

  • Docs
  • Pricing
  • Releases
  • About
  • Contact
  • Terms of Service
  • Privacy Policy

reopt Inc.Business registration no. 217-88-02453contact@reopt.ai

© 2026 reopt Inc. All rights reserved.

Heading

Component

Control the semantic document hierarchy independently from the visual typography hierarchy.

Related docs
bun add @reopt-ai/opt-ui
Install and import
bash
bun add @reopt-ai/opt-ui
tsx
import { Heading } from "@reopt-ai/opt-ui";

Live preview

Change the width and theme, then interact with the components.

100%

Heading 의미와 시각적 계층

Display 스타일, h4 의미

섹션 스타일, h5 의미
중첩 스타일, h6 의미

Usage guidance

Best practices

  • Choose level for document structure and variant for visual emphasis.

Usage to avoid

  • Keep heading levels in order; do not skip levels to change visual size.

Theme customization

[data-opt-component="heading"][data-opt-part="root"]--opt-text-heading-1-size--opt-text-heading-2-size--opt-text-display-1-size

Scenarios to explore

  • hierarchy

    Verify heading and display styles independently from semantic heading levels.

    responsive

Heading

PropTypeDefaultDescription
level1 | 2 | 3 | 4 | 5 | 6—의미 기반 HTML 제목 레벨
variant"heading-1" | "heading-2" | "heading-3" | "heading-4" | "heading-5" | "heading-6" | "display-1" | "display-2" | "display-3"—시각적 제목 역할
childrenReactNode—제목 콘텐츠
View test results

테스트 커버리지

2026년 7월 9일3/3 통과
3성공
0실패
3전체
  • renders a semantic text element with a tokenized visual role
  • supports label-specific props when rendering a label
  • keeps semantic heading level independent from visual hierarchy

Related components

opt-ui

FieldToken

Core

Display field types with consistent glyphs and optional labels for strings, numbers, dates, IP addresses, and geographic data.

opt-ui

Facet

Core

Filter by field values while reading their counts and distribution bars. Show top values first and collapse the long tail.

opt-ui

Expression

Core

Read and edit conditions as sentences for alert rules and segment filters that need to be easy to verify.

opt-ui

TextTruncate

Core

Measure text in its actual font and available width to truncate the start, middle, or both ends while preserving the full accessible text.

opt-ui

Highlight

Core

Mark matching search terms with semantic mark elements, matching longer terms first to avoid fragmented overlaps.

opt-ui

LiveRegion

Core

Announce live updates to screen readers with throttled summaries and alternating nodes that can repeat identical messages.

PreviousTextNextKbd