Trait dioxus::prelude::DioxusElement[][src]

pub trait DioxusElement {
    const TAG_NAME: &'static str;
    const NAME_SPACE: Option<&'static str>;
    fn tag_name(&self) -> &'static str { ... }
fn namespace(&self) -> Option<&'static str> { ... } }
Expand description

A trait for any generic Dioxus Element.

This trait provides the ability to use custom elements in the rsx! macro.

struct my_element;

impl DioxusElement for my_element {
    const TAG_NAME: "my_element";
    const NAME_SPACE: None;
}

let _ = rsx!{
    my_element {}
};

Associated Constants

Provided methods

Implementations on Foreign Types

impl DioxusElement for article

Implementors