UnreviewedOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptionalonOptional UnreviewedkeyReact/Preact reconciliation key when rendered inside a list.
Optional UnreviewedidHTML id attribute.
Optional UnreviewedclassHTML class attribute (standard DOM).
Optional UnreviewedclassReact/Preact-style class name. Alias for class.
Optional UnreviewedstyleInline styles applied to the element.
OptionalchildrenOptional UnreviewedslotAssigns the element to a named <slot> (e.g. slot="title").
Optional UnreviewedtabTab order. Set to 0 to make the element keyboard-focusable.
Optional UnreviewedroleARIA role override.
Optional UnrevieweddisplayHost display mode. Omit for the default block box.
Optional UnreviewedroundFully-round corners (border-radius: 999px), or a custom radius via a
length value (round="12px"). Presence-based for the boolean form.
Optional UnreviewedgapGap between children, as a length value (gap="8px"). Engines without
typed attr() read it from --box-gap in the host's inline style
instead, which is what the JSX wrapper always sets.
Optional Unreviewedinclude-Adds matching descendant rects to each measurement snapshot. With
observe="scroll", use throttle when many descendants match: rects are
read for each emitted event, and CSS state updates follow the interval.
Optional UnreviewedpaddingCSS padding shorthand (padding="8px 16px"). Without typed attr()
support, set --box-padding as well. The JSX wrapper supplies it.
Optional UnreviewedmarginCSS margin shorthand (margin="0 auto"). Without typed attr()
support, set --box-margin as well. The JSX wrapper supplies it.
Optional UnreviewedfadeMasks every edge that currently hides clipped content.
Optional UnreviewedobserveSpace-separated selections: width, height, size, context,
overflow, edges, scroll, or all, in any order. size selects
width and height; edges selects edge transitions. A bare
attribute means all. Omission runs no observers unless fade is set;
a native event listener alone does not enable observation.
Optional Unreviewedobserve-Keeps measurement observation active outside the viewport when observe
or fade selects measurement.
Optional UnreviewedthrottleMinimum interval between measurement reads, CSS state updates, and
events in milliseconds. The initial read is immediate. Omit or pass 0
for frame-based updates. Invalid or negative values use 0.
Optional Unreviewedfade-Depth of that mask, as a length value (fade-size="2rem"). Engines
without typed attr() read it from --box-fade-size in the host's
inline style instead, which is what the JSX wrapper always sets.
Optional UnreviewedonmeasurechangeNative event fired when a selected measurement field changes.
Optional UnreviewedoncontextchangeNative event fired when rendering context or focus-within changes.
Attributes for the light-DOM
<a-box>observing container. For the JSX wrapper with cross-renderer event unwrapping, useBoxfrom@antadesign/anta.