-
Notifications
You must be signed in to change notification settings - Fork 9
Component Heading
MeowLynxSea edited this page Jan 24, 2026
·
4 revisions
Semantic headings (H1/H2/H3).
Headings are styled text for section titles. For body text, use Label or Text.
- Page titles, section headings, grouped UI labels
- Dialog titles (often via
Modal.title(...))
Not a good fit:
- Long body text (use
Label)
use yororen_ui::component::{heading, HeadingLevel};
let title = heading("Settings").level(HeadingLevel::H1);
let section = heading("General").level(HeadingLevel::H2);-
heading("..."): constructor -
id(...): stable identity -
level(HeadingLevel):-
H1: 32px bold -
H2: 24px semibold (default) -
H3: 18px semibold
-
- Default level:
H2 - Color:
theme.content.primary
- Keep headings short; long paragraphs should use
Label. - For consistent spacing between sections, put headings in your layout with explicit margins/padding.
- Heading colors use
theme.content.primary.
Yororen UI v0.3.0 · repository · Apache-2.0 · This wiki documents Yororen UI v0.3.0.
This wiki documents Yororen UI v0.3.0 — the headless-core, swappable-renderer build.