The span component can be used to style inline text without creating a new line.

Write some stylized text using spans.
rc.box(
    "Write some ",
    rc.span("stylized ", color="red"),
    rc.span("text ", color="blue"),
    rc.span("using spans.", font_weight="bold"),
)

rc.span

Render an inline span of text.

PropType | ValuesDefault
as_
str

Event Triggers

See the full list of default event triggers