Skip to main content

Crate euv_core

Crate euv_core 

Source
Expand description

euv

A declarative, cross-platform UI framework for Rust with virtual DOM, reactive signals, and HTML macros for WebAssembly.

Structs§

AttrValueAdapter
Adapts an arbitrary attribute value expression into an AttributeValue.
AttributeEntry
Represents a single attribute on a virtual DOM node.
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.
HookContext
Manages hook state across render cycles for a DynamicNode.
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.
Rc
A single-threaded reference-counting pointer. ‘Rc’ stands for ‘Reference Counted’.
Signal
A reactive signal handle.
SignalCell
A Sync wrapper for single-threaded global Signal access.
Style
A collection of CSS style properties that can be converted to a style string.
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.

Traits§

IntoEventProp
Trait for converting event-like values into Option<NativeEventHandler>.
IntoNode
Trait for converting a value into a VirtualNode by consuming it.
IntoReactiveString
Trait for converting a value into a string for reactive attribute updates.
IntoReactiveValue
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 match arm switches).
use_signal
Creates a new reactive signal with the given initial value.