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" />| Prop | Required | Purpose |
|---|---|---|
model_key | Yes (in specs) | Which model diagram to render |
children | No | YAML 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>| Filter | Effect |
|---|---|
objects.include.id | Only these object ids (supports *) |
objects.exclude.id | Remove these object ids |
links.include.tags | Keep links matching group:value tags |
links.exclude.attributes | Drop 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