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
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
//! Layout widgets - Container and positioning components
//!
//! This module provides widgets for arranging and positioning other widgets.
//! Includes flexbox stacks, CSS Grid, split panes, scrolling, and more.
//!
//! # Widget Categories
//!
//! ## Basic Layout
//!
//! | Widget | Description | Constructor |
//! |--------|-------------|-------------|
//! | [`Stack`] | Vertical/horizontal stack | [`vstack()`][vstack], [`hstack()`][hstack] |
//! | [`Border`] | Bordered container | [`border()`] |
//! | [`Card`] | Content card with header/footer | [`card()`] |
//!
//! ## Advanced Layout
//!
//! | Widget | Description | Constructor |
//! |--------|-------------|-------------|
//! | [`Grid`] | CSS Grid layout | [`grid()`] |
//! | [`Splitter`] | Resizable split panes | [`hsplit()`][hsplit], [`vsplit()`][vsplit] |
//! | [`ScrollView`] | Scrollable container | [`scroll_view()`] |
//! | [`Layers`] | Z-index layering | [`layers()`] |
//! | [`Positioned`] | Absolute positioning | [`positioned()`] |
//!
//! ## Navigation
//!
//! | Widget | Description | Constructor |
//! |--------|-------------|-------------|
//! | [`Tabs`] | Tab container | [`tabs()`] |
//! | [`Accordion`] | Collapsible sections | [`accordion()`] |
//! | [`Collapsible`] | Single expandable section | [`collapsible()`] |
//! | [`Sidebar`] | Vertical navigation | [`sidebar()`] |
//!
//! ## Special
//!
//! | Widget | Description | Constructor |
//! |--------|-------------|-------------|
//! | [`Resizable`] | Resizable container | [`resizable()`] |
//! | [`Screen`] | Screen/page widget | [`screen()`] |
//!
//! # Quick Start
//!
//! ## Vertical Stack
//!
//! ```rust,ignore
//! use revue::prelude::*;
//!
//! vstack()
//! .gap(1)
//! .child(Text::new("Title"))
//! .child(Text::new("Content"))
//! .child(Text::new("Footer"));
//! ```
//!
//! ## Horizontal Stack
//!
//! ```rust,ignore
//! use revue::prelude::*;
//!
//! hstack()
//! .gap(2)
//! .child(Text::new("Left"))
//! .child(Text::new("Center"))
//! .child(Text::new("Right"));
//! ```
//!
//! ## CSS Grid
//!
//! ```rust,ignore
//! use revue::prelude::*;
//!
//! grid()
//! .template_columns("1fr 2fr 1fr")
//! .template_rows("auto 1fr auto")
//! .child(grid_item().row(1).col(1).child(Text::new("Header")))
//! .child(grid_item().row(2).col(1).col_span(3).child(Text::new("Content")))
//! .child(grid_item().row(3).col(1).child(Text::new("Footer")));
//! ```
//!
//! ## Split Panes
//!
//! ```rust,ignore
//! use revue::prelude::*;
//!
//! hsplit()
//! .ratio(0.3, 0.7)
//! .pane(0, Text::new("Left Panel"))
//! .pane(1, Text::new("Right Panel"));
//! ```
//!
//! ## Scroll View
//!
//! ```rust,ignore
//! use revue::prelude::*;
//!
//! scroll_view()
//! .height(10)
//! .child(vstack().children((0..100).map(|i| Text::new(format!("Line {}", i)))));
//! ```
//!
//! ## Tabs
//!
//! ```rust,ignore
//! use revue::prelude::*;
//!
//! tabs()
//! .tab("Tab 1", Text::new("Content 1"))
//! .tab("Tab 2", Text::new("Content 2"))
//! .tab("Tab 3", Text::new("Content 3"));
//! ```
//!
//! [vstack]: crate::widget::vstack
//! [hstack]: crate::widget::hstack
//! [hsplit]: crate::widget::hsplit
//! [vsplit]: crate::widget::vsplit
// Re-exports for convenience
pub use ;
pub use ;
pub use ;
pub use ;
pub use ;
pub use ;
pub use ;
pub use ;
pub use ;
pub use ;
pub use ;
pub use ;
pub use ;
pub use ;
pub use ;