dioxus_html::elements

Module dialog

Source
Expand description

Build dialog <dialog> element.

§Usage in rsx

rsx! {
    // Elements are followed by braces that surround any attributes and children for that element
    dialog {
        // Add any attributes first
        class: "my-class",
        "custom-attribute-name": "value",
        // Then add any attributes you are spreading into this element
        ..attributes,
        // Then add any children elements, components, text nodes, or raw expressions
        div {}
        ChildComponent {}
        "child text"
        {raw_expression}
    }
};

Constants§