Expand description
euv
A declarative, cross-platform UI framework for Rust with virtual DOM, reactive signals, and HTML macros for WebAssembly.
Modules§
Macros§
- class
- The
class!macro for defining CSS classes with style properties. - html
- The
html!macro for writing declarative UI in euv. - watch
- The
watch!macro for creating reactive side effects.
Structs§
- Attribute
Entry - Represents a single attribute on a virtual DOM node.
- Component
Context - Context provided to a component during rendering.
- Component
Handle - A handle to a mounted component instance.
- CssClass
- Represents a CSS class with a name and its style declarations.
- Dynamic
Node - A closure-based dynamic node that re-renders when its dependency signals change.
- Hook
Context - Manages hook state across render cycles for a DynamicNode.
- Hook
Context Cell - A
Syncwrapper for single-threaded globalHookContextInneraccess. - Hook
Context Inner - Internal storage for hook state, holding boxed
Anyvalues and an index. - Native
Change Event - Data associated with a change event.
- Native
Clipboard Event - Data associated with a clipboard event.
- Native
Drag Event - Data associated with a drag event.
- Native
Event Handler - A wrapper around an event callback.
- Native
Focus Event - Data associated with a focus event.
- Native
Input Event - Data associated with an input event.
- Native
Keyboard Event - Data associated with a keyboard event.
- Native
Media Event - Data associated with a media event.
- Native
Mouse Event - Data associated with a mouse event.
- Native
Submit Event - Data associated with a form submit event.
- Native
Touch Event - Data associated with a touch event.
- Native
Wheel Event - Data associated with a wheel event.
- Renderer
- Manages the rendering of virtual DOM nodes to the real DOM.
- Signal
- A reactive signal handle.
- Signal
Inner - Inner state of a signal, holding the value and subscribed listeners.
- Style
- A collection of CSS style properties that can be converted to a style string.
- Style
Property - Represents a CSS style property.
- Text
Node - Represents a text node in the virtual DOM.
Enums§
- Attribute
- Represents the name of an HTML attribute or DOM property.
- Attribute
Value - Represents the value of an HTML attribute.
- Native
Event - Represents different kinds of UI events.
- 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.
Statics§
- CURRENT_
HOOK_ CONTEXT - Global pointer to the currently active
HookContextInner. - DEFAULT_
HOOK_ CONTEXT - Default empty
HookContextInnerfor the global fallback. - HANDLER_
REGISTRY - Global pointer to the handler registry.
- NEXT_
EUV_ ID - Global auto-incrementing ID counter for DOM elements.
Traits§
- AsNode
- Trait for types that can be converted into a
VirtualNodefor use in HTML expressions. - AsReactive
Text - Trait for types that can be converted into a reactive text
VirtualNode. - Component
- Trait defining the lifecycle of a component.
- Into
Callback Attribute - Trait for types that can be converted into a callback attribute value.
- Into
Event Attribute - Trait for types that can be converted into an event attribute value.
- Into
Node - Trait for converting a value into a
VirtualNodeby consuming it. - Into
Reactive Value - Trait for types that can be converted into a reactive string value.
Functions§
- create_
hook_ context - Creates a new
HookContextallocated viaBox::leak. - get_
handler_ registry - Returns a mutable reference to the global handler registry.
- mount
- Mounts the given virtual DOM tree to a specific element matched by a CSS selector.
- mount_
body - Mounts the given virtual DOM tree to the document body.
- trigger_
update - Dispatches the global
__euv_signal_update__event on the window. - use_
signal - Creates a new reactive signal with the given initial value.
- with_
hook_ context - Runs a closure with the given
HookContextset as the active context.
Type Aliases§
- Component
Element - The return type of a component function.
Attribute Macros§
- component
- The
componentattribute macro for marking component functions.