Skip to main content

Crate iced_ui

Crate iced_ui 

Source
Expand description

iced_ui — a component library built on top of iced.

This crate currently provides:

  • MenuBar — a horizontal top-of-app menu bar with dropdowns, nested submenus, keyboard shortcuts and a pluggable style.
  • Card — a rounded-corner presentational container with a flat or elevated (drop-shadowed) variant, and optional background color or image.
  • list::List — a vertical list of interactive items with hover/press feedback, suitable for navigation sidebars and selection lists.

Re-exports§

pub use badge::Badge;
pub use button::Button;
pub use card::Card;
pub use card::Variant;
pub use chip::Chip;
pub use color_picker::ColorPicker;
pub use date_input::DateInput;
pub use datetime_input::DateTimeInput;
pub use dialog::Dialog;
pub use divider::Divider;
pub use fab::Fab;
pub use icon_button::IconButton;
pub use menu::Catalog;
pub use menu::Icon;
pub use menu::Item;
pub use menu::KeyBinding;
pub use menu::Menu;
pub use menu::MenuBar;
pub use menu::MenuButton;
pub use menu::Separator;
pub use menu::Style;
pub use menu::StyleFn;
pub use menu::default;
pub use menu::shortcuts;
pub use native::native;
pub use navigation_bar::NavigationBar;
pub use navigation_drawer::NavigationDrawer;
pub use navigation_rail::NavigationRail;
pub use number_input::NumberInput;
pub use position::Position;
pub use screen::Screen;
pub use segmented_button::Segment;
pub use segmented_button::SegmentedButton;
pub use slide_sheet::SlideSheet;
pub use snackbar::Notification;
pub use snackbar::NotificationId;
pub use snackbar::Notifications;
pub use snackbar::Snackbar;
pub use tabs::Tabs;
pub use text::Text;
pub use text_input::TextInput;
pub use theme::FontSize;
pub use theme::FontSizeBase;
pub use theme::Information;
pub use theme::PaddingSource;
pub use theme::Paper;
pub use theme::Roundness;
pub use theme::RoundnessBase;
pub use theme::Space;
pub use theme::SpacingBase;
pub use theme::Theme;
pub use time_input::TimeInput;
pub use top_app_bar::TopAppBar;
pub use chrono;

Modules§

badge
Small indicator overlaid on a child widget, showing either a dot (no content) or a count value.
button
A themed button with variant and size options.
card
A presentational card container with rounded corners, optional background color or image, and two visual variants (flat with a border, or elevated with a drop shadow).
chip
Compact interactive element for actions, filtering, or representing input.
color_picker
A color picker widget with a trigger swatch and popup overlay.
date_input
A date input field with a calendar picker popup.
datetime_input
A combined date-and-time input field with a picker popup.
dialog
Modal overlay presenting a title, content, and action buttons on top of a scrim.
divider
Thin horizontal or vertical line that separates content with optional leading/trailing insets.
fab
Prominent button for the primary action on a screen.
icon_button
Circular/rounded button showing a single icon, with four visual variants and an optional toggle state.
list
A vertical list of interactive items with hover/press feedback.
menu
A horizontal application menu bar with dropdowns, nested submenus, keyboard shortcuts and a pluggable style.
native
The native escape-hatch function.
navigation_bar
Horizontal bottom bar with 3–5 destinations for mobile layouts.
navigation_drawer
Side panel with destinations, supporting modal (overlay with scrim) mode.
navigation_rail
Vertical strip with 3–7 icon+label destinations for desktop/tablet layouts.
number_input
A numeric input field with optional stepper buttons.
position
Shared positional anchor used by multiple widgets.
screen
A device-screen container that constrains its content to a specific aspect ratio with presets for desktop and mobile devices.
segmented_button
Horizontal group of toggle segments where exactly one (or more) can be selected.
slide_sheet
A panel that slides from any edge of its host content.
snackbar
Multi-notification snackbar overlaid on host content.
tabs
Horizontal tab row with an active indicator.
text
A styled text widget with heading-level constructors.
text_input
A themed text input with optional leading and trailing elements.
theme
The iced_ui theme.
time_input
A time input field with an hour/minute picker popup.
top_app_bar
Title bar with navigation icon, title, and action icons.