1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
use *;
use component_doc;
use inline_style_sheet_values;
/// Page-level max-width and horizontal centering inside the shell.
///
/// The container does not add its own padding — [`LayoutMain`](orbital_core_components::LayoutMain) or the host layout's content scroll area should provide responsive padding. Default max-width is 1200px. Common widths: `"720px"` for focused reading, `"900px"` for forms and articles, `"1200px"` for default page content.
///
/// # Examples
///
/// ## Default (1200px)
/// Standard page width centered in the shell — the default for catalog and app content.
/// <!-- default -->
/// <!-- preview -->
/// ```rust
/// view! {
/// <div data-testid="container-preview" style="width: 100%; border: 1px dashed var(--orb-color-border-default);">
/// <Container>
/// <div style="padding: var(--orb-space-inline-md); background: var(--orb-color-surface-subtle);">
/// "Centered content at 1200px max-width"
/// </div>
/// </Container>
/// </div>
/// }
/// ```
///
/// ## Narrow form width
/// Tighter `max_width` for focused forms or reading columns without changing shell padding.
/// <!-- preview -->
/// ```rust
/// view! {
/// <div data-testid="container-narrow" style="width: 100%; min-width: 720px; border: 1px dashed var(--orb-color-border-default);">
/// <Container max_width="720px">
/// <div style="padding: var(--orb-space-inline-md); background: var(--orb-color-surface-subtle);">
/// "Focused content at 720px"
/// </div>
/// </Container>
/// </div>
/// }
/// ```
///
/// ## Custom max width
/// Override `max_width` for marketing hero sections or wide data tables.
/// <!-- preview -->
/// ```rust
/// view! {
/// <div data-testid="container-wide" style="width: 100%; border: 1px dashed var(--orb-color-border-default);">
/// <Container max_width="900px">
/// <div style="padding: var(--orb-space-inline-md); background: var(--orb-color-surface-subtle);">
/// "Form or article width at 900px"
/// </div>
/// </Container>
/// </div>
/// }
/// ```
]
max_width: String,
/// Optional CSS class to merge onto the container element.
class: ,
/// Optional `data-testid` attribute for testing.
data_testid: ,
/// Child content.
children: Children,
)