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

22 lines
366 B
Markdown

---
components:
- rx.radix.center
---
```python exec
import reflex as rx
```
# Center
`Center` is a component that centers its children within itself. It is based on the `flex` component and therefore inherits all of its props.
```python demo
rx.center(
rx.text("Hello World!"),
border_radius="15px",
border_width="thick",
width="50%",
)
```