Hulian UIv0.93.5413 components0 components
  • Start
  • Components
  • Blocks
  • Pages
  • Demos
  • Changelog
ChineseEnglish
  • ComponentsComponents
  • ThemeTheme

Text

  • Text
  • Heading
  • SectionHeader
  • Prose
  • Markdown
  • Formula
  • AuroraText
  • LineShadowText
  • AnimatedShinyText
  • AnimatedGradientText
  • WordRotate
  • TypingAnimation
  • SparklesText
  • SplitText
  • BlurText
  • FlipText
  • TextReveal
  • DecryptedText
  • GlitchText
  • CircularText
  • ScrollReveal
  • TrueFocus
  • ASCIIText
  • CurvedLoop
  • FallingText
  • FuzzyText
  • ScrambledText
  • ScrollFloat
  • ScrollVelocity
  • Shuffle
  • TextCursor
  • TextPressure
  • VariableProximity

Code

  • Code
  • CodeBlock
  • Snippet
  • CodeDiff
  • Kbd

SectionHeader

section-header

The heading group at the start of a section: eyebrow, large title, accented half, and lead text.

Usage

Basic usage

An eyebrow, a title, an accented second half, and a lead paragraph: the group that opens each section on a marketing page or docs home.

Products

From one button,
to a whole back office

Four layers, one design language. Copy what you need.

tsx
<SectionHeader
  eyebrow="Products"
  title="From one button,"
  accent="to a whole back office"
  accentBreak="mobile"
  description="Four layers, one design language. Copy what you need."
/>

Centered

align="center" centers the title and lead text together, for a closing CTA or a centered intro.

Design

Carefully designed defaults,free to change

Every component ships with defaults ready for production.

tsx
<SectionHeader
  align="center"
  eyebrow="Design"
  title="Carefully designed defaults,"
  accent="free to change"
  accentBreak="none"
  description="Every component ships with defaults ready for production."
/>

Breaking before the accent

accentBreak decides how the title joins the accented half: always breaks the line, mobile breaks only on narrow screens, space adds a space (English), and none joins directly.

AI native

Your AI assistant,
fluent in your UI kit

In production

Built natively on Hulian UI

tsx
<SectionHeader eyebrow="AI native" title="Your AI assistant," accent="fluent in your UI kit" />
<SectionHeader eyebrow="In production" title="Built natively" accent="on Hulian UI" accentBreak="space" />

When to use

The group that opens each section on a marketing page or docs home: a small eyebrow (section name), a large section title whose second half is accented, and a lead paragraph. For the title bar at the top of an admin page (back button, breadcrumbs, actions), use PageHeader; for just a heading, use Heading.

Import

ts
import { SectionHeader } from "@hulianui/ui"

Props

NameTypeDefaultDescription
title*ReactNode-The title
eyebrowReactNode-A short line above the title (section name), in the accent color
accentReactNode-The second half of the title, accented
accentBreak"always" | "mobile" | "space" | "none""always"How the title joins accent: always breaks the line; mobile breaks only on narrow screens; space stays on one line with a space (English); none joins directly (Chinese)
descriptionReactNode-Lead text under the title, in secondary gray, up to about 42rem wide
align"start" | "center""start"Alignment; with center the lead text is centered too
level2 | 3 | 42Semantic heading level; the visual size stays at the section-title step (30px on narrow screens, 36px from sm up)
Extends native <div> attributes (className lands on the outer container, for width and margins).

Pitfalls

  • Use accentBreak="none" when a Chinese title should read as one run and "space" for English; the default "always" breaks the line between the halves.
  • Keep punctuation with the first half (title="From one button,"): the mobile break happens before accent, so punctuation inside accent would start the line on narrow screens.

Related

Heading · PageHeader · Text

Playground

Products

From one button,
to a whole back office

Four layers, one design language. Copy what you need.

<SectionHeader
  eyebrow="Products"
  title="From one button,"
  accent="to a whole back office"
  accentBreak="always"
  align="start"
  description="Four layers, one design language. Copy what you need."
/>
PreviousHeadingTypographyNextProse

On this page

  • Usage
  • Documentation
    • When to use
    • Import
    • Props
    • Pitfalls
    • Related
  • Playground