Skip to main content

dioxus_elements/
lib.rs

1//! `dioxus_elements` registry for ArkUI.
2//!
3//! This crate mirrors the shape of `dioxus-html` so that `rsx!` (which resolves
4//! element/attribute/event descriptors against an extern crate named
5//! `dioxus_elements`) emits references that resolve here.
6//!
7//! Element names are lowercase-no-underscore (the rsx! native-element rule):
8//! `column`, `row`, `stack`, `flex`, `text`, `button`, `image`, ...
9//!
10//! Each element module exposes:
11//! - `TAG_NAME: &'static str` — the canonical lowercase ArkUI tag the
12//!   renderer maps to a native node (e.g. `"column"`).
13//! - `NAME_SPACE: Option<&'static str>` — always `Some("arkui")`.
14//! - `pub const` attribute descriptors of type
15//!   `(&'static str, Option<&'static str>, bool)` = `(name, namespace, volatile)`.
16//!
17//! Events are callables produced by `impl_event!`.
18
19pub mod elements;
20pub mod event;
21pub mod events;
22
23pub use elements::*;
24
25pub type AttributeDescription = (&'static str, Option<&'static str>, bool);