Expand description
euv
A declarative, cross-platform UI framework for Rust with virtual DOM, reactive signals, and HTML macros for WebAssembly.
Structs§
- Attr
Value Adapter - Adapts an arbitrary attribute value expression into an
AttributeValue. - Attribute
Entry - Represents a single attribute on a virtual DOM node.
- Css
- Represents a CSS class with a name, its style declarations, and optional pseudo rules.
- Dynamic
Node - A closure-based dynamic node that re-renders when its dependency signals change.
- Event
Adapter - Adapts various event value types into an
AttributeValuefor event attributes. - Hook
Context - Manages hook state across render cycles for a DynamicNode.
- Interval
Handle - A handle to a browser interval timer created by
use_interval. - Media
Rule - Represents a CSS @media rule attached to a class.
- Native
Event Handler - A wrapper around an event callback.
- Pseudo
Rule - Represents a CSS pseudo-class or pseudo-element rule attached to a class.
- Signal
- A reactive signal handle.
- Signal
Cell - A
Syncwrapper for single-threaded globalSignalaccess. - Text
Node - Represents a text node in the virtual DOM.
Enums§
- Attribute
Value - Represents the value of an HTML attribute.
- Tag
- Represents the type of an HTML tag or a component.
- Virtual
Node - Represents a node in the virtual DOM tree.
Traits§
- Into
Node - Trait for converting a value into a
VirtualNodeby consuming it. - Into
Reactive String - Trait for converting a value into a string for reactive attribute updates.
- Into
Reactive Value - Trait for types that can be converted into a reactive string value.
Functions§
- batch_
updates - Batches signal updates within a closure, deferring DOM synchronization until completion.
- mount
- Mounts the given virtual DOM tree to a specific element matched by a CSS selector.
- schedule_
signal_ update - Schedules a deferred signal update event via
requestAnimationFrame. - use_
cleanup - Registers a cleanup callback that will be executed when the current
hook context is cleared (e.g., when a
matcharm switches). - use_
interval - Creates a recurring interval that invokes the given closure at the
specified period, returning an
IntervalHandlethat is automatically cleared when the hook context is cleared (i.e., when the component unmounts or amatcharm switches). - use_
signal - Creates a new reactive signal with the given initial value.
- use_
window_ event - Registers a
window.addEventListenercallback using event delegation, automatically removed when the hook context is cleared.