element!() { /* proc-macro */ }Expand description
JSX-alike: element! { View(gap: 1) { Text(content: "hi") #(iter) } }.
Hosts: View, Text, Fragment, ContextProvider(value: ..). Anything else is a
component; its props type is {Name}Props by convention (Default-filled).
Identifiers prefixed with __ are reserved inside element! expansions.
The expansion emits fully-qualified ::ntui:: paths (proc macros cannot use
$crate), so the library must be reachable as ::ntui — i.e. depended on as
ntui; renaming the dependency breaks codegen.