Reflex Cloud - Fast, secure & scalable hosting. One command to deploy.

Container

Constrains the maximum width of page content, while keeping flexible margins for responsive layouts.

A Container is generally used to wrap the main content for a page.

Basic Example

This content is constrained to a max width of 448px.
This content is constrained to a max width of 688px.
This content is constrained to a max width of 880px.
This content is constrained to a max width of 1136px.

API Reference

rx.container

Constrains the maximum width of page content.

Test
PropType | ValuesDefaultInteractive
size
"1" | "2" | ...
LiteralVar.create("3")

Event Triggers

See the full list of default event triggers