Skip to main content

Crate dioxus_elements

Crate dioxus_elements 

Source
Expand description

dioxus_elements registry for ArkUI.

This crate mirrors the shape of dioxus-html so that rsx! (which resolves element/attribute/event descriptors against an extern crate named dioxus_elements) emits references that resolve here.

Element names are lowercase-no-underscore (the rsx! native-element rule): column, row, stack, flex, text, button, image, …

Each element module exposes:

  • TAG_NAME: &'static str — the canonical lowercase ArkUI tag the renderer maps to a native node (e.g. "column").
  • NAME_SPACE: Option<&'static str> — always Some("arkui").
  • pub const attribute descriptors of type (&'static str, Option<&'static str>, bool) = (name, namespace, volatile).

Events are callables produced by impl_event!.

Re-exports§

pub use elements::*;

Modules§

elements
ArkUI element descriptors for rsx!.
event
Shared event payload types bridging ArkUI native events into dioxus.
events
ArkUI event handlers usable inside rsx!.

Type Aliases§

AttributeDescription