Reflex Logo
Docs Logo
Library

/

Layout

/

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.

Hello World!

API Reference

rx.center

A center component.

PropType | ValuesDefaultInteractive
access_key
str
-
auto_capitalize
"off" | "none" | ...
-
content_editable
Union["inherit" | "plaintext-only", bool]
-
context_menu
str
-
dir
str
-
draggable
bool
-
enter_key_hint
"enter" | "done" | ...
-
hidden
bool
-
input_mode
"none" | "text" | ...
-
item_prop
str
-
lang
str
-
role
"alert" | "alertdialog" | ...
-
slot
str
-
spell_check
bool
-
tab_index
int
-
title
str
-
as_child
bool
-
direction
"row" | "column" | ...
-
align
"start" | "center" | ...
-
justify
"start" | "center" | ...
-
wrap
"nowrap" | "wrap" | ...
-
spacing
"0" | "1" | ...
-

Built with Reflex