Expand description
§snora-widgets
Optional prefab iced::Element builders for snora’s skeleton slots.
These widgets are entirely optional — the snora engine
(snora::render) consumes any iced::Element in any slot. Use
these helpers to get a working app on screen quickly, and replace
them with hand-written elements the moment you need to customize
beyond what they expose.
§Crate boundary
This crate exists so that snora’s engine (the snora crate) can
evolve independently of widget visuals. Applications normally do
not depend on snora-widgets directly — snora re-exports
everything here under the snora::widget module when its
widgets feature is enabled (the default).
Direct snora-widgets use is supported for two cases:
- Engine-only applications that opt out of
snora’swidgetsfeature and want to add the widget set back selectively. - Alternative engines built against
snora-corethat want to reuse the widget visuals.
§ABDD
Every widget that has start/end asymmetry takes a
snora_core::LayoutDirection argument and mirrors accordingly.
Modules§
Functions§
- app_
breadcrumb - Build a breadcrumb trail.
- app_
footer - Wrap
contentin a chrome-styled footer bar. - app_
header - Build an application header.
- app_
side_ bar - Render a
SideBaras an icon rail. - app_
tab_ bar - Build a horizontal tab bar.
- icon_
element - Render an icon at the default size.
- icon_
element_ sized - Render an icon at a custom pixel size.
- render_
menu - Render a single menu (header button + dropdown when active).