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"),
)