pub struct CustomProp {
pub name: &'static str,
pub id: u32,
pub jsx_names: &'static [&'static str],
pub lua_names: &'static [&'static str],
pub jsx: &'static str,
pub lua: &'static str,
pub c: &'static str,
pub odin: &'static str,
pub doc: &'static str,
}Expand description
A prop every binding handles by hand (a composite with real logic, or a constructor-order special), with its wire id so transports agree on identity and its per-binding spelling so the docs can say so.
Fields§
§name: &'static str§id: u32§jsx_names: &'static [&'static str]Every prop name a JSX view may write for it — the machine-readable
half of jsx, which is prose for the docs. A composite is spelled
differently in each binding (borderW here, border = {…} there),
so the two lists are separate; together with PROPS and an element’s
own props they are the whole allow-list a binding checks a view
against (see known_prop).
lua_names: &'static [&'static str]The same for a Lua node table.
jsx: &'static strHow JSX spells it.
lua: &'static strHow a Lua table spells it.
c: &'static strWhere it lands in C.
odin: &'static strWhere it lands in Odin (packages/odin): a Spec / Text_Style
field, or a kui. procedure for a window-level row. The Odin
generator checks every name here is one its package has.
doc: &'static str