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

21 lines
359 B
Markdown

---
components:
- rx.chakra.Container
---
# Container
```python exec
import reflex as rx
```
Containers are used to constrain a content's width to the current breakpoint, while keeping it fluid.
```python demo
rx.chakra.container(
rx.chakra.box("Example", bg="blue", color="white", width="50%"),
center_content=True,
bg="lightblue",
)
```