Embed Objects
Embed Objects

Embed a live model diagram in a spec, optionally filtered.

The Objects component embeds a model diagram directly in a spec. It renders the live model for a given model key, and you can optionally filter which objects and links appear.

Basic usage

<Objects model_key="logic" />
PropRequiredPurpose
model_keyYes (in specs)Which model diagram to render
childrenNoYAML filters for objects and links

Filtering

Pass YAML filters as the component’s children to focus the diagram:

<Objects model_key="logic">
  ```yaml filters: objects: include: id: - 'logic.*' exclude: id: -
  'logic.legacy' links: include: tags: - 'flow:*' ```
</Objects>
FilterEffect
objects.include.idOnly these object ids (supports *)
objects.exclude.idRemove these object ids
links.include.tagsKeep links matching group:value tags
links.exclude.attributesDrop links matching attribute rules

Children are YAML filters

Objects reads its children as YAML filter rules, not as nested object cards. Invalid YAML silently disables filtering.

Use tag-based filters to build intent-driven views (for example only flow:* links) that stay meaningful as the model grows. See Embed Objects in the reference for the full prop API.

Last updated on