Skip to main content

adam_web_ui/components/
mod.rs

1//! Model-independent control behavior.
2//!
3//! Use [`number`] to normalize localized input before submitting an edit.
4//! Styled controls install their embedded CSS through the renderer's Dioxus
5//! `Document` context. Missing context reports a delivery failure on the platform
6//! diagnostic channel; the library does not assume an alternate stylesheet.
7pub mod button;
8pub mod card;
9pub mod checkbox;
10pub mod input;
11pub mod label;
12pub mod number;
13mod numeric_editor;
14mod numeric_events;
15pub mod separator;
16pub mod slider;
17mod styles;
18pub mod switch;
19mod theme;
20
21pub use button::{Button, ButtonProps, ButtonSize, ButtonVariant};
22pub use card::{Card, CardAction, CardContent, CardDescription, CardFooter, CardHeader, CardTitle};
23pub use checkbox::Checkbox;
24/// Provides the checked state accepted by [`Checkbox`].
25///
26/// # Examples
27///
28/// ```
29/// use adam_web_ui::components::CheckboxState;
30/// let checked = CheckboxState::Checked;
31/// ```
32pub use dioxus_primitives::checkbox::CheckboxState;
33pub use input::{Input, InputProps};
34pub use label::Label;
35pub use numeric_editor::{NumericEditor, NumericEditorProps, NumericSlider};
36pub use separator::Separator;
37pub use slider::{RangeSlider, Slider};
38pub use styles::{CONTROL_CSS, style_delivery_script};
39pub use switch::Switch;
40pub use theme::Theme;
41
42#[cfg(test)]
43pub(crate) mod tests;