Trait dioxus_web_component::DioxusWebComponent

source ·
pub trait DioxusWebComponent {
    // Required method
    fn element() -> Element;

    // Provided methods
    fn attributes() -> &'static [&'static str] { ... }
    fn style() -> InjectedStyle { ... }
}
Expand description

Dioxus web component

Required Methods§

source

fn element() -> Element

Provide the dioxus element

Provided Methods§

source

fn attributes() -> &'static [&'static str]

Provide observable attributes

source

fn style() -> InjectedStyle

Provide the CSS style

Object Safety§

This trait is not object safe.

Implementors§