Reflex Logo
Docs Logo
Library

/

Layout

/

Box

Box is a generic container component that can be used to group other components.

By default, the Box component is based on the div and rendered as a block element. It's primary use is for applying styles.

CSS color
CSS color
Radix Color
Radix Color
Radix Theme Color

To set a background image or gradient, use the background CSS prop.

API Reference

rx.box

A fundamental layout building block, based on div element.

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
-

Built with Reflex