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

22 lines
375 B
Markdown

---
components:
- rx.chakra.span
---
```python exec
import reflex as rx
```
# Span
The span component can be used to style inline text without creating a new line.
```python demo
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")
)
```