Skip to main content

Module ui

Module ui 

Source

Macros§

children
Build a heterogeneous Vec<AnyElement> without repetitive child landing boilerplate.

Structs§

ContainerBox
A patchable container constructor for authoring ergonomics.
ContainerBoxBuild
Variant of ContainerBox that collects children into a sink to avoid iterator borrow pitfalls.
ContainerPropsBox
A raw-container variant that preserves caller-provided ContainerProps while still allowing builder-first child authoring to land at the last possible moment.
ContainerPropsBoxBuild
Sink-based variant of ContainerPropsBox for iterator-heavy or borrow-sensitive child flows.
EffectLayerBox
EffectLayerBoxBuild
FlexBox
A patchable flex layout constructor for authoring ergonomics.
FlexBoxBuild
Variant of FlexBox that collects children into a sink to avoid iterator borrow pitfalls.
HoverRegionBox
A patchable hover-region builder for app-facing interaction shells.
KeyedBox
A keyed identity wrapper that keeps the original cx.keyed(...) callsite stable across builder-first / late-landing authoring paths.
RawTextBox
A patchable unstyled text builder matching TextProps::new(...) defaults.
RichTextBox
A patchable attributed-text builder matching StyledTextProps::new(...) defaults.
ScrollAreaBox
A patchable scroll area constructor for authoring ergonomics.
ScrollAreaBoxBuild
Variant of ScrollAreaBox that collects children into a sink to avoid iterator borrow pitfalls.
StackBox
A patchable stack layout constructor for authoring ergonomics.
TextBox
A patchable text constructor for authoring ergonomics.

Enums§

TextLineHeightPreset
TextPreset

Traits§

UiElementSinkExt
Extension helpers for *_build child sinks.

Functions§

container
Returns a patchable container builder.
container_build
Variant of container that avoids iterator borrow pitfalls by collecting into a sink.
container_props
Returns a raw ContainerProps root that still keeps child authoring on the late-landing path.
container_props_build
Sink-based variant of container_props for iterator-heavy or borrow-sensitive child flows.
effect_layer
Returns a patchable effect-layer builder.
effect_layer_build
Variant of effect_layer that avoids iterator borrow pitfalls by collecting into a sink.
effect_layer_props
Returns a patchable effect-layer builder with explicit props.
effect_layer_props_build
Variant of effect_layer_props that collects children into a sink.
for_each_keyed
Collects a keyed dynamic child list without forcing callers onto *_build(|cx, out| ...).
for_each_keyed_with_cx
Collects a keyed dynamic child list while exposing the keyed child scope to each row builder.
h_flex
Returns a patchable horizontal flex layout builder.
h_flex_build
Variant of h_flex that avoids iterator borrow pitfalls by collecting into a sink.
h_row
Returns a patchable horizontal flex layout builder that does not force width: fill.
h_row_build
Variant of h_row that avoids iterator borrow pitfalls by collecting into a sink.
hover_region
Returns a patchable hover-region builder.
keyed
Returns an identity-preserving keyed wrapper for a single child subtree.
label
Returns a patchable label builder (single-line, medium weight).
raw_text
Returns a patchable unstyled text builder matching TextProps::new(...) defaults.
rich_text
Returns a patchable attributed-text builder matching StyledTextProps::new(...) defaults.
scroll_area
Returns a patchable scroll area builder.
scroll_area_build
Variant of scroll_area that avoids iterator borrow pitfalls by collecting into a sink.
selectable_text
Returns a patchable selectable text builder (drag-to-select + edit.copy).
selectable_text_block
Returns a patchable selectable block text builder (full-width; drag-to-select + edit.copy).
single
Late-lands a single typed child into Ui / Elements.
stack
Returns a patchable stack layout builder.
text
Returns a patchable text builder (shadcn-aligned defaults).
text_block
Returns a patchable block text builder (full-width; shadcn-aligned defaults).
v_flex
Returns a patchable vertical flex layout builder.
v_flex_build
Variant of v_flex that avoids iterator borrow pitfalls by collecting into a sink.
v_stack
Returns a patchable vertical flex layout builder that does not force width: fill.
v_stack_build
Variant of v_stack that avoids iterator borrow pitfalls by collecting into a sink.