Skip to main content

Module element

Module element 

Source
Expand description

Element types and traits for layout-driven UI

Provides the core abstractions for building layout trees that can be rendered via the DrawContext API.

Structs§

BorderBuilder
Builder for constructing per-side borders with a fluent API
BorderSide
Individual border side configuration
BorderSides
Per-side border configuration for CSS-like border control
DynRenderProps
Dynamic render props that can hold references to reactive values
ElementBounds
Computed layout bounds for an element after layout computation
GlassMaterial
Glass/vibrancy material that blurs content behind it
MaterialShadow
Shadow configuration for materials
MetallicMaterial
Metallic/reflective material
MotionAnimation
Motion animation configuration for enter/exit animations
MotionKeyframe
A single keyframe of motion animation values
RenderProps
Visual properties for rendering an element
ResolvedRenderProps
Resolved render props with concrete values
SolidMaterial
Solid opaque material (the default)
SvgTagStyle
Per-tag SVG style overrides for CSS tag-name selectors (e.g., path { fill: red; })
WoodMaterial
Wood grain material (placeholder for future texture support)

Enums§

CursorStyle
Mouse cursor style for an element
FlowRef
A reference to a @flow shader — either by name (for CSS-defined flows) or by direct FlowGraph (for flow! macro-defined flows).
Material
Material types that can be applied to elements
RenderLayer
Render layer for separating elements in glass-effect rendering