Skip to content

Component Label

MeowLynxSea edited this page Jun 18, 2026 · 6 revisions

Label

A single line of text with style flags.

use yororen_ui::headless::label::label;

label("email", "Email", cx).strong(true).render(cx)

Props

Method Purpose
muted(v) Secondary text color.
strong(v) Bold weight.
mono(v) Monospace font.
ellipsis(v) Truncate with on overflow.
wrap() Allow wrapping onto multiple lines.
max_lines(n) Cap to n lines when wrapping.
inherit_color(v) Inherit parent text color instead of the renderer default.

Text is set at construction. .render(cx) returns Stateful<Div>.

See also: Text, Heading.

Clone this wiki locally