Expand description
Themeable application components for iced.
Every component sits behind a Cargo feature named after it, such as
button or scroll-area, and each group (primitives, forms,
layout, navigation, overlay, feedback, application, data)
enables its members. The default full feature enables all of them.
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 icon::Glyph;pub use keys::Chord;pub use keys::Keymap;pub use application::command_palette;command-palettepub use application::command_palette;command-palettepub use application::status_bar;status-barpub use application::status_bar;status-barpub use application::toolbar;toolbarpub use application::toolbar;toolbarpub use data::data_table;data-tablepub use data::data_table;data-tablepub use data::json_viewer;json-viewerpub use data::json_viewer;json-viewerpub use data::log_viewer;log-viewerpub use data::log_viewer;log-viewerpub use data::property_grid;property-gridpub use data::property_grid;property-gridpub use data::tree;treepub use data::tree;treepub use data::virtual_list;virtual-listpub use data::virtual_list;virtual-listpub use feedback::alert;alertpub use feedback::alert;alertpub use feedback::badge;badgepub use feedback::badge;badgepub use feedback::progress;progresspub use feedback::progress;progresspub use feedback::spinner;spinnerpub use feedback::spinner;spinnerpub use feedback::avatar;avatarpub use feedback::avatar;avatarpub use feedback::avatar_group;avatarpub use forms::combobox;comboboxpub use forms::combobox;comboboxpub use forms::select;selectpub use forms::select;selectpub use forms::textarea;textareapub use forms::textarea;textareapub use forms::field;fieldpub use forms::label;fieldpub use forms::label;fieldpub use layout::accordion;accordionpub use layout::accordion;accordionpub use layout::card;cardpub use layout::card;cardpub use layout::resizable_panel;resizable-panelpub use layout::resizable_panel;resizable-panelpub use layout::split_pane;split-panepub use layout::split_pane;split-panepub use layout::hstack;stackpub use layout::vstack;stackpub use navigation::command;commandpub use navigation::command;commandpub use navigation::document_tabs;document-tabspub use navigation::document_tabs;document-tabspub use navigation::pagination;paginationpub use navigation::pagination;paginationpub use navigation::crumb;breadcrumbpub use navigation::tab;tabspub use navigation::tabs;tabspub use navigation::tabs;tabspub use overlay::popover;popoverpub use overlay::popover;popoverpub use overlay::tooltip;tooltippub use overlay::tooltip;tooltippub use overlay::alert_dialog;dialogpub use overlay::dialog;dialogpub use overlay::dialog;dialogpub use overlay::toast;toastpub use overlay::toast;toastpub use overlay::toasts;toastpub use primitives::checkbox;checkboxpub use primitives::checkbox;checkboxpub use primitives::input;inputpub use primitives::input;inputpub use primitives::scroll_area;scroll-areapub use primitives::scroll_area;scroll-areapub use primitives::slider;sliderpub use primitives::slider;sliderpub use primitives::switch;switchpub use primitives::switch;switchpub use primitives::toggle;togglepub use primitives::toggle;togglepub use primitives::toggle_group;toggle-grouppub use primitives::toggle_group;toggle-grouppub use primitives::radio;radiopub use primitives::radio;radiopub use primitives::radio_group;radiopub use primitives::separator;separatorpub use primitives::separator;separatorpub use primitives::vertical_separator;separator
Modules§
- application
- Application chrome: the menubar, toolbar, status bar and command palette.
- data
- Data display: trees, tables, long lists, logs, JSON documents and property grids.
- feedback
- Status and identity: alerts, avatars, badges, progress bars and spinners.
- forms
- Form building blocks: labels and fields, comboboxes, selects and textareas.
- icon
- Lucide icons rendered through iced’s
svgwidget. - keys
- Keyboard shortcuts that apps can rebind.
- layout
- Arranging content: stacks, cards, accordions and resizable panels.
- navigation
- Moving between views and actions: breadcrumbs, command lists, document tabs, pagination, the sidebar and tabs.
- overlay
- Floating content: dialogs, tooltips, toasts, popovers and menus.
- primitives
- Basic controls: buttons, icon buttons, checkboxes, inputs, radios, scroll areas, separators, sliders, switches, toggles and toggle groups.
- theme
- Design tokens and the built-in light and dark themes.