reflex/docs/library/chakra/typography/span.md
2024-02-26 17:18:28 +01:00

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