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
//! Input widgets - User input components
//!
//! This module provides widgets for collecting user input through various mechanisms.
//! Input widgets handle text entry, selection, toggles, and specialized input patterns.
//!
//! # Widget Categories
//!
//! ## Text Input
//!
//! | Widget | Description | Constructor |
//! |--------|-------------|-------------|
//! | [`Input`] | Single-line text input | [`input()`] |
//! | [`TextArea`] | Multi-line text input | [`textarea()`] |
//! | [`SearchBar`] | Search input with filtering | [`search_bar()`] |
//!
//! ## Buttons & Toggles
//!
//! | Widget | Description | Constructor |
//! |--------|-------------|-------------|
//! | [`Button`] | Clickable button | [`button()`] |
//! | [`Switch`] | On/off toggle switch | [`switch()`], [`toggle()`] |
//! | [`Checkbox`] | Checkbox for binary choice | [`checkbox()`] |
//! | [`RadioGroup`] | Exclusive radio buttons | [`radio_group()`] |
//!
//! ## Selection
//!
//! | Widget | Description | Constructor |
//! |--------|-------------|-------------|
//! | [`Select`] | Dropdown selection | [`select()`] |
//! | [`Combobox`] | Editable dropdown | [`combobox()`] |
//! | [`SelectionList`] | Select from list | [`selection_list()`] |
//! | [`Autocomplete`] | Text with suggestions | [`autocomplete()`] |
//!
//! ## Numeric Input
//!
//! | Widget | Description | Constructor |
//! |--------|-------------|-------------|
//! | [`NumberInput`] | Numeric text input | [`number_input()`] |
//! | [`Slider`] | Range slider | [`slider()`] |
//! | [`Stepper`] | Increment/decrement steps | [`stepper()`] |
//! | [`Rating`] | Star rating widget | [`rating()`] |
//!
//! ## Specialized Input
//!
//! | Widget | Description | Constructor |
//! |--------|-------------|-------------|
//! | [`ColorPicker`] | Color selection | [`color_picker()`] |
//! | `slider_range()` | Dual-handle range slider | See function |
//!
//! # Quick Start
//!
//! ## Text Input
//!
//! ```rust,ignore
//! use revue::prelude::*;
//!
//! input()
//! .placeholder("Enter your name...")
//! .value("Default text");
//! ```
//!
//! ## Button
//!
//! ```rust,ignore
//! use revue::prelude::*;
//!
//! button("Click Me")
//! .variant(ButtonVariant::Primary)
//! .on_click(|_| println!("Clicked!"));
//! ```
//!
//! ## Checkbox
//!
//! ```rust,ignore
//! use revue::prelude::*;
//!
//! checkbox("Remember me")
//! .checked(true)
//! .on_change(|checked| println!("Checked: {}", checked));
//! ```
//!
//! ## Slider
//!
//! ```rust,ignore
//! use revue::prelude::*;
//!
//! slider()
//! .min(0)
//! .max(100)
//! .value(50)
//! .step(5);
//! ```
//!
//! ## Select
//!
//! ```rust,ignore
//! use revue::prelude::*;
//!
//! select()
//! .options(vec![
//! ("Option 1", "1"),
//! ("Option 2", "2"),
//! ("Option 3", "3"),
//! ])
//! .selected("1");
//! ```
// 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 ;
pub use ;