Expand description
Floating surfaces that render above the page.
Overlay owns placement, stacking and dismissal; FocusTrap keeps the
keyboard inside an open overlay and gives focus back when it closes.
Dialog composes both into a modal that asks one question, Drawer is
the same surface arriving from an edge, and Tooltip is hover-delayed
help that is never the only way to act.
ToastLayer holds transient notifications, which report what happened
and never hide a failure on a timer.
Popover is the anchored surface the menu family is built from:
Menu hangs one off a trigger, ContextMenu opens the same list at
the pointer, and CommandPalette filters it from the keyboard.
Re-exports§
pub use frost::Frost;pub use hover_card::HoverCard;pub use hover_card::HoverCardEvent;pub use menubar::Menubar;pub use menubar::MenubarEvent;pub use menubar::MenubarMenu;pub use notification_center::Notification;pub use notification_center::NotificationCenter;pub use notification_center::NotificationCenterEvent;pub use notification_center::UnreadCount;pub use popover::Popover;pub use popover::PopoverEvent;pub use toast::Toast;pub use toast::ToastCorner;pub use toast::ToastLayer;pub use tooltip::Tooltip;pub use tooltip::Tooltipped;
Modules§
- frost
- A surface that shows what is behind it, out of focus.
- hover_
card - A rich preview that opens on hover and can be reached.
- menubar
- The horizontal row of menus along the top of a window’s content.
- notification_
center - Where a notification goes after the toast that showed it has gone.
- panel
- The parts a modal surface and a drawer build from.
- popover
- The anchored surface every menu-shaped component is built from.
- toast
- Transient notifications that report what happened without hiding a failure.
- tooltip
- Hover-delayed help for a control that is already usable without it.
Structs§
- Command
- One thing the application can do.
- Command
Palette - A query field over a list of commands.
- Context
Menu - The same menu, opened at the pointer over a region rather than from a trigger.
- Dialog
- A composed modal: scrim, focus trap, title, body, and up to two actions.
- Drawer
- A panel anchored to one side of the window.
- Focus
Trap - The focus stops of one open overlay, in tab order.
- Kbd
- A keyboard shortcut, written the way the current platform writes it.
- Menu
- A list of commands, opened from a trigger.
- Menu
Item - One entry in a menu, identified by business identity rather than position.
- Overlay
- A floating surface.
Enums§
- Command
Palette Event - What the palette reports. The owner decides what any of it means.
- Context
Menu Event - What a context menu reports.
- Dialog
Event - What the dialog reports. The owner decides what any of it means.
- Drawer
Event - What the drawer reports. The owner decides what any of it means.
- Edge
- One side of the window.
- Menu
Event - What a menu reports. The owner decides what any of it means.
- Placement
- Where a floating surface sits.