instance
A use of another component, whose own spec governs its interior.
Path
component-api:anatomy.<element>.type: instance
Styles
Written on the element, not this anatomy entry — under a variant, slot content, or a composition. The style keys an element of this type may carry:
bottom · centerHorizontalOffset · centerVerticalOffset · end · height · layoutSizingHorizontal · layoutSizingVertical · locked · maxHeight · maxWidth · minHeight · minWidth · opacity · position · rotation · start · top · visible · width
Themes
Selected on the element, not this anatomy entry. Any element may select a theme for a token group, or inherit one from the nearest ancestor — deciding what its subtree’s token references resolve to.
Platform bindings
Figma
Disposition: bound · Realised by: INSTANCE node
Rules: primitivePromotion — with text, glyph
instanceOf resolves to the main component’s name — the component set’s where the main component sits inside one. A primitive layer in composed content may be PROMOTED to an instance by the primitives convention (ADR-074), recorded in $extensions['com.figma'].
CSS
Disposition: bound · Realised by: Css
Rules: elementSelectors — with text, glyph, vector, container, slot, line, ellipse, rectangle
The instanced component’s own stylesheet owns its interior; this component’s sheet writes only the instance element’s own box — size, spacing, position.
React
Disposition: bound · Realised by: the composed component, imported and configured
Rules: layoutWalk — with container, text, glyph, slot · semanticsAndTags — with text, container
instanceOf becomes an import; propConfigurations become its props. A roled instance routes the role’s contract props to the instanced component’s matching parts (ADR-067 rule 5).
Web Components
Disposition: bound · Realised by: the composed custom element, configured
Rules: layoutWalk — with container, text, glyph, slot
instanceOf resolves through the same instance-target resolution React uses — subcomponent refs included — and composed content walks the shared recursion. Role ROUTING on an instance remains the one unconfirmed corner, noted on the semanticsAndTags rule.
Decisions
- ADR-074 — Primitives Promote to Component Instances During Capture, in Composed Content
Source
| Format | File |
|---|---|
| JSON Schema | packages/schema/schema/component.schema.json |
| TypeScript | packages/schema/types/Element.ts |
| Specification | §2, §11 |