span.md 375 B


components:

- rx.chakra.span

import reflex as rx

Span

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

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