Expand description
Themeable application components for iced.
use iced_cube::{button, lucide};
use iced_cube::primitives::button::Variant;
#[derive(Debug, Clone)]
enum Message { Save }
let save: iced::Element<'_, Message> = button("Save")
.icon(lucide!(Save))
.variant(Variant::Primary)
.on_press(Message::Save)
.into();Re-exports§
pub use feedback::alert;pub use feedback::alert;pub use feedback::badge;pub use feedback::badge;pub use feedback::progress;pub use feedback::progress;pub use feedback::spinner;pub use feedback::spinner;pub use forms::field;pub use forms::label;pub use forms::label;pub use forms::select;pub use forms::select;pub use forms::textarea;pub use forms::textarea;pub use icon::Glyph;pub use keys::Chord;pub use keys::Keymap;pub use layout::accordion;pub use layout::accordion;pub use layout::card;pub use layout::card;pub use layout::hstack;pub use layout::vstack;pub use navigation::tab;pub use navigation::tabs;pub use navigation::tabs;pub use overlay::toast;pub use overlay::toast;pub use overlay::toasts;pub use overlay::tooltip;pub use overlay::tooltip;pub use primitives::checkbox;pub use primitives::checkbox;pub use primitives::input;pub use primitives::input;pub use primitives::radio;pub use primitives::radio;pub use primitives::radio_group;pub use primitives::scroll_area;pub use primitives::scroll_area;pub use primitives::separator;pub use primitives::separator;pub use primitives::slider;pub use primitives::slider;pub use primitives::switch;pub use primitives::switch;pub use primitives::vertical_separator;
Modules§
- feedback
- Status and progress: alerts, badges, progress bars and spinners.
- forms
- Form building blocks: labels and fields, selects and textareas.
- icon
- Lucide icons rendered through iced’s
svgwidget. - keys
- Keyboard shortcuts that apps can rebind.
- layout
- Arranging content: stacks, cards and accordions.
- navigation
- Moving between views: tabs.
- overlay
- Floating content: tooltips and toasts.
- primitives
- Basic controls: buttons, checkboxes, inputs, radios, scroll areas, separators, sliders and switches.
- theme
- Design tokens and the built-in light and dark themes.