Expand description
euv
A declarative, cross-platform UI framework for Rust with virtual DOM, reactive signals, and HTML macros for WebAssembly.
Re-exports§
pub use console_error_panic_hook;pub use js_sys;pub use wasm_bindgen;pub use wasm_bindgen_futures;pub use web_sys;
Macros§
- class
- The
class!macro for defining CSS classes with style properties. - css_
vars - The
css_vars!macro for defining CSS custom properties. - html
- The
html!macro for writing declarative UI in euv. - var
- The
var!macro for referencing CSS custom properties defined viacss_vars!. - watch
- The
watch!macro for creating reactive side effects.
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.
- Media
Rule - Represents a CSS @media rule attached to a class.
- Native
Event Handler - A wrapper around an event callback.
- Parse
Native Event Name Error - Error type returned when parsing a string into
NativeEventNamefails. - 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. - Style
- A collection of CSS style properties that can be converted to a style string.
- Text
Node - Represents a text node in the virtual DOM.
Enums§
- Attribute
Value - Represents the value of an HTML attribute.
- Native
Event Name - Represents the name of a DOM event.
- 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§
- mount
- Mounts the given virtual DOM tree to a specific element matched by a CSS selector.
- use_
signal - Creates a new reactive signal with the given initial value.
- with_
suppressed_ updates - Executes a closure with signal update scheduling suppressed.
Attribute Macros§
- component
- The
componentattribute macro for marking component functions.