Skip to main content Module primitives Copy item path Source pub use aspect_ratio::AspectRatio ;pub use center::Center ;pub use column_flow::ColumnFlow ;pub use dead_zone::DeadZone ;pub use divider::Divider ;pub use expand::Expand ;pub use fixed_size::FixedSize ;pub use form_layout::FormLayout ;pub use grid::Grid ;pub use grid::TrackSize ;pub use hstack::HStack ;pub use icon_widget::IconWidget ;pub use image_mask::ImageMaskShape ;pub use image_widget::ImageFit ;pub use image_widget::ImageWidget ;pub use masonry::MasonryLayout ;pub use max_size::MaxSize ;pub use min_size::MinSize ;pub use padding::Padding ;pub use rect_widget::RectWidget ;pub use shrinkable::Shrinkable ;pub use spacer::Spacer ;pub use switcher::Switcher ;pub use text_input_field::AtRevealPolicy ;pub use text_input_field::EchoMode ;pub use text_input_field::InputPurpose ;pub use text_input_field::TextFieldHandle ;pub use text_input_field::TextInputField ;pub use text_widget::TextWidget ;pub use twist_arrow::TwistArrow ;pub use validation_strip::ValidationStrip ;pub use vstack::VStack ;pub use wrap::Wrap ;pub use zstack::ZStack ;aspect_ratio AspectRatio — a single-child wrapper that constrains layout to a fixed
width-to-height ratio. center Center — a single-child wrapper that centers its child within the available
space. column_flow ColumnFlow — flows children into as many columns as the width affords,
re-partitioning every child when a column is gained or lost.dead_zone DeadZone — a gesture dead zone wrapper.divider Divider — a themed separator line that visually partitions content. expand Expand — a layout modifier that claims slack space in a stack and
stretches its child to fill the allocated bounds. fixed_size FixedSize — a layout modifier that pins a child to its natural size,
optionally overriding one or both dimensions with a reactive value. form_layout FormLayout — a two-column settings or preferences form layout. grid Grid — a 2D layout container with explicit row and column tracks. hstack HStack — a horizontal layout container that distributes children left-to-right. icon_widget IconWidget — a vector or raster icon rendered at a configurable size. image_mask Anti-aliased alpha masking for raster images — circle / rounded-square
/ square coverage applied in-place to RGBA8 pixel buffers. image_widget ImageWidget — displays a raster image (PNG, WebP) with a configurable
sizing policy, content-fit mode, and intra-box alignment. masonry MasonryLayout — a variable-height grid that packs children into the
shortest column (Pinterest-style). max_size MaxSize — a layout modifier that caps a child to a maximum width and/or height. min_size MinSize — a layout modifier that ensures a child reaches a minimum width and/or height. padding Padding — a single-child layout container that adds insets around its child. rect_widget RectWidget — a leaf widget that paints a filled and/or stroked rounded rectangle. shrinkable Shrinkable — a layout modifier that allows its child to compress under an over-constraint. spacer Spacer — an invisible, flexible gap that claims all available space on the
container’s main axis. switcher Switcher — a container that shows exactly one child page at a time. text_input_field TextInputField — raw editable text surface primitive built on the
text-typeset / text-document stack. Consumed by TextInput (the
styled composite) and SpinBox (numeric input) and available to
third-party composites that need inline editable text.
TextInputField — editable single-line text surface primitive.text_widget TextWidget — a leaf widget that renders a localized text string. twist_arrow TwistArrow — a small chevron that indicates and toggles a tree node’s expansion. validation_strip ValidationStrip — a small inline message shown below a text field to
surface a validation outcome. vstack VStack — a vertical layout container that distributes children top-to-bottom. wrap Wrap — a horizontal flow layout that wraps children to the next line when
they exceed the available width. zstack ZStack — a layout container that layers children on top of each other.