Axon 911 Frontend Docs
    Loading navigation…
U
User
Switch to light mode
  1. Primitives
  2. Contents
  3. API and Development

Contents

API and Development

View SourceOpens in a new tabSubmit IssueOpens in a new tab
Import Contents from @prepared911/ui/contents.
Props
PropTypeMeaning
childrenReactNodeContent laid out by the nearest box-generating ancestor.
refRef<HTMLDivElement>The rendered element. It generates no box, so measure or observe its children.
data-*stringForwarded to the element, such as data-test-id or data-tracking-label. A name reserved for design-system state is dropped.
Rejected props
className, style, regionClass, as, every Box layout prop, role, every ARIA attribute, id, tabIndex, hidden, inert and every event handler are declared never in ContentsForbiddenProps. TypeScript skips excess-property checks for undeclared hyphenated attributes and for spread objects, so declaring them is what makes aria-label or {...props} a type error. At runtime only children, ref and data-* reach the element, even when other props are cast past the types.
What is fixed
The element is always a div whose stylesheet declares display: contents and nothing else.
Previous
Contents / Usage
Next
Contents / Accessibility
On this page
Props
Rejected props
What is fixed