Skip to content

Complete NXML component/property reference ​

Use this reference to check exact components, properties and resource budgets. Consult the surrounding behavior guide before combining features that share input or lifetime constraints.

Version scope: these source-level examples target v2.0.0.alpha.14. Use the Plugin SDK for current Wasm plugin authoring.

This inventory follows A14 external components/compiler. Names are not CLR types. Required fields come from definitions, and property support depends on recipe.

Every built-in component ​

ComponentRecipeRoleChildrenRequired
ButtonCommandInputButtontrue—
CheckBoxCommandInputCheckBoxfalse—
ContentHostElementContenttrue—
DialogStackLayoutDialogtrue—
DynamicDynamicSlotNonefalseKey
HorizontalPagerHorizontalPagerContenttrue—
ImageImageImagefalseSource
NavigationStackLayoutNavigationtrue—
NavigationItemCommandInputNavigationItemfalseLabel,Command
NotificationStackLayoutStatustrue—
PageElementPagetrue—
ProgressProgressProgressBarfalse—
ProgressRingProgressProgressBarfalse—
ShellStackLayoutPagetrue—
SliderRangeInputSliderfalse—
StackPanelStackLayoutNonetrue—
TextTextTextfalse—
TextInputTextInputTextInputfalseLabel
TitleBarStackLayoutTitleBartrue—
VerticalPagerVerticalPagerContenttrue—

Author-defined StatusCard/Switch must be explicitly registered. Leaf recipes reject children; Dynamic must be empty.

Identity/metadata ​

PropertyContract
Key1–128, no whitespace/controls, unique after expansion
Class≤64 identifiers, ≤128 each, alphanumeric/underscore/hyphen
KindOriginal style identity, primitive definition only
RecipeElement1/StackLayout2/Text3/CommandInput4/Image5/VerticalPager6/TextInput7/Progress8/HorizontalPager9/DynamicSlot10/RangeInput11
RoleNone/Text/Button/Page/List/ListItem/Image/ProgressBar/Dialog/TitleBar/Navigation/NavigationItem/Content/TextInput/Status/Switch/CheckBox/RadioGroup/RadioButton/Slider
AcceptsChildren/RequiredPrimitive metadata only

References cannot override metadata. Host IR numbers are not plugin ABI.

Layout/content ​

PropertiesContract
Dimensions/min/max/WeightFinite doubles
AlignmentsStretch/Start/Center/End
Margin/PaddingOne or four comma values, L/T/R/B
Orientation/Spacing/StretchLastChildStack/Dynamic
LayoutDynamic only: Stack/Overlay/HorizontalPager/VerticalPager
ContentText/CommandInput, string State/data format
LabelSemantic text, string State/data format
Source/IconImage/CommandInput source, not IO authority
LocalizeBoolean literal policy
MaxLines/TrimOverflowText/CommandInput, 0–4096/Boolean

Input/state/motion ​

PropertiesContract
IsVisibleBool literal/State
Enabled/ClickableBool literal/State on supported recipes
FocusableLiteral Boolean
CommandSemantic literal/data, no method/script
ArgumentLiteral/data argument; mutually exclusive with ArgumentFrom
ArgumentFromCurrent value at same-document Key; maximum128 references, no missing/cyclic links
SelectedCommandInput literal/data
CheckedCheckBox/Switch CommandInput literal/data
SelectionRequiredStack selection policy
SegmentThumbSame-document unique transition thumb
SegmentWidthPositive command-control width
PlaceholderInput literal/data, no State
IsPassword/MaximumLength/PreserveTabsFixed input contract; length1–32768/default2048
Minimum/Maximum/Step/RangeValueRangeInput finite ordered bounds/positive step/in-range value
ValueProgress double literal/State
Ring/IndeterminateProgress; indeterminate requires ring
TransitionKey/OffsetX/Y/MovesSelfKey string/State, finite offsets, fixed Boolean requiring key

Scroll/overlay ​

PropertiesContract
ScrollStack/Dynamic; horizontal capsule only with authored HoverExpand
Vertical indicator/StickToEnd/ScrollGestureScroll on Stack/Dynamic Stack, not capsule
Horizontal indicator/wheel routingAdmitted Scroll including capsule
StableContentFinite annotation, not logical identity
ModalLayerElement/Overlay Dynamic
OverlayMotionNone/Notification/DialogScrim/Dialog
LiveSettingOff/Polite/Assertive
DismissCommandSemantic intent
Anchor/AnchorGapLocal scoped key/nonnegative gap, no self/descendant

Base visual fields ​

Background/Foreground/Border/Hover colors; Opacity0–1; finite radius/border/blur/font size/weight; TextAlignment Start/Center/End; WrapText/HoverExpand/NavigationLayout Boolean; Surface None/Solid/Translucent/Glass.

Theme-only GridColumns/Transform/FontFamily etc. are not automatically NXML attributes. See NSS/1.

Budgets ​

InputLimit
NXML text/read file1 Mi characters/4 MiB bytes
XML nodes/elements65536/16384
Depth/attributes<128/128 per element
Component library256/8 Mi characters
Expanded nodes/depth16384/<128
Dynamic data256 parameters/1 Mi characters, separate1 Mi expansion
Mixed placeholders256 per format
Base NSS1 Mi characters/4096 rules/128 declarations per block

Reject rather than truncate. Sidecar UI's64 nodes/32KiB is separate, not expandable by this table.

Failure types ​

ParseException covers XML/namespace/DTD/text/binding grammar; CompileException covers components/types/structure/styles; LoadException covers state resolution/ownership/reload/runtime-tree contracts. Fix the owning phase; do not mask failure as an empty successful page or swallow unrelated Host exceptions.

Implementation references ​

Shared Sidecar document additions ​

ArgumentFrom="Draft" reads the current value from the local input keyed Draft; missing, cyclic or over-depth references reject. {data example.state} reads same-session scalar mirror data as literal values, distinct from Host {state ...} bindings. See NXML schema 3 for page and fragment lifetimes.

Check your result ​

Reject a malformed property and exercise the documented budget boundary rather than testing only a small valid tree.

Site documentation: CC BY-SA 4.0. Imported SDK documents: Apache-2.0 as marked.