Skip to main content

Crate euv

Crate euv 

Source
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.
computed
The computed! macro for creating reactive computed signals.
html
The html! macro for writing declarative UI in euv.
var
The var! macro for referencing CSS custom properties defined via vars!.
vars
The vars! macro for defining CSS custom properties.
watch
The watch! macro for creating reactive side effects.

Structs§

AttrValueAdapter
Adapts an arbitrary attribute value expression into an AttributeValue.
AttributeEntry
Represents a single attribute on a virtual DOM node.
CallbackNamedAdapter
Adapts a callback with a custom name into an AttributeValue.
Css
Represents a CSS class with a name, its style declarations, and optional pseudo rules.
DynamicNode
A closure-based dynamic node that re-renders when its dependency signals change.
EventAdapter
Adapts various event value types into an AttributeValue for event attributes.
EventNamedAdapter
Adapts an event with a specific event name into an AttributeValue.
HookContext
Manages hook state across render cycles for a DynamicNode.
IntervalHandle
A handle to a browser interval timer created by use_interval.
MediaRule
Represents a CSS @media rule attached to a class.
NativeEventHandler
A wrapper around an event callback.
PseudoRule
Represents a CSS pseudo-class or pseudo-element rule attached to a class.
Signal
A reactive signal handle.
SignalCell
A Sync wrapper for single-threaded global Signal access.
TextNode
Represents a text node in the virtual DOM.

Enums§

AttributeValue
Represents the value of an HTML attribute.
Tag
Represents the type of an HTML tag or a component.
VirtualNode
Represents a node in the virtual DOM tree.

Functions§

batch
Batches signal updates within a closure, deferring DOM dispatch until the outermost batch completes.
mount
Mounts the given virtual DOM tree to a specific element matched by a CSS selector.
schedule_update
Schedules a deferred signal update with precise dirty marking.
use_cleanup
Registers a cleanup callback that will be executed when the current hook context is cleared (e.g., when a match arm switches).
use_interval
Creates a recurring interval that invokes the given closure at the specified period, returning an IntervalHandle that is automatically cleared when the hook context is cleared (i.e., when the component unmounts or a match arm switches).
use_signal
Creates a new reactive signal with the given initial value.
use_window_event
Registers a window.addEventListener callback using event delegation, automatically removed when the hook context is cleared.

Attribute Macros§

component
The component attribute macro for marking component functions.