dioxus_native_core

Module custom_element

Source
Expand description

A custom element is a controlled element that renders to a shadow DOM. This allows you to create elements that act like widgets without relying on a specific framework.

Each custom element is registered with a element name and namespace with RealDom::register_custom_element or RealDom::register_custom_element_with_factory. Once registered, they will be created automatically when the element is added to the DOM.

Traitsยง

CustomElement
A controlled element that renders to a shadow DOM.
CustomElementFactory
A factory for creating custom elements
CustomElementUpdater
A trait for updating custom elements