Skip to main content

Backstage plugin component reference

View as Markdown

Import components from @eventcatalog/backstage-plugin-eventcatalog.

Full-page components

Use these components as children of EntityLayout.Route.

EventCatalogDocumentationEntityPage

The general-purpose page component.

<EventCatalogDocumentationEntityPage page="docs" />

Supported page values:

ValueEmbedded viewResource selection
docsResource documentationCurrent mapping or id, version, and collection props
visualiserResource visualizerCurrent mapping or override props
discoverDiscovery table for the mapped collectionCurrent mapping or override props
entity-mapResource entity mapCurrent mapping or override props; provide a version
schema-explorerCatalog schema explorerGlobal catalog view, rendered from a mapped entity page
architecture-graphCatalog Architecture GraphPrefer EventCatalogArchitectureGraphEntityPage
system-context-mapSystem Context MapPrefer EventCatalogSystemContextMapEntityPage
flowFlow visualizerPrefer EventCatalogFlowEntityPage

EventCatalogArchitectureGraphEntityPage

Displays /visualiser/graph and focuses the graph on the selected resource.

<EventCatalogArchitectureGraphEntityPage
type="service"
depth={2}
/>

The graph accepts depth={1 | 2 | 3} and defaults to 2. The Architecture Graph currently uses the latest version of each resource, so version does not change its graph data.

EventCatalogSystemContextMapEntityPage

Displays the catalog-wide System Context Map when no system is selected:

<EventCatalogSystemContextMapEntityPage />

Pass system and version to display one system's context:

<EventCatalogSystemContextMapEntityPage
system="order-management-system"
version="1.0.0"
/>

id is accepted as an alias for system. A mapped Backstage System entity can supply both values through annotations.

EventCatalogFlowEntityPage

Displays a flow visualizer. A flow ID and version are required.

<EventCatalogFlowEntityPage
flow="checkout-saga"
version="1.0.0"
/>

id is accepted as an alias for flow.

Card components

Card components render the same embeds and fill the dimensions of their parent container.

ComponentViewSelection props
EventCatalogEntityVisualiserCardResource visualizerCurrent entity mapping
EventCatalogEntityMessageCardDiscovery tableCurrent entity mapping
EventCatalogEntityEntityMapCardEntity mapCurrent mapping or id, version, and collection
EventCatalogEntitySchemaExplorerCardSchema explorerGlobal view
EventCatalogEntityArchitectureGraphCardArchitecture GraphCurrent mapping or id, type/collection, and depth
EventCatalogEntitySystemContextMapCardSystem Context MapOverview, or system/id and version
EventCatalogEntityFlowCardFlow visualizerflow/id and version, or current entity mapping

Set a concrete height on the parent grid item. See Control embed theme and size.

Shared props

PropTypeDefaultDescription
idstringEntity annotationOverride the EventCatalog resource ID. Also aliases system and flow on their dedicated components.
versionstringEntity annotationOverride the EventCatalog version.
collectionstringEntity annotation or inferred valueOverride the EventCatalog collection.
typestringNoneAlias for collection; singular known types are converted to plural collections.
theme'light' | 'dark'Saved EventCatalog themeForce the color theme for this embed.

Specialized props

PropComponentTypeDefaultDescription
pageEventCatalogDocumentationEntityPageEventCatalogPagedocsSelect the embedded EventCatalog view.
depthArchitecture Graph components1 | 2 | 32Number of relationship hops around the focused resource.
systemSystem Context Map componentsstringNoneEventCatalog system ID. Omit for the overview.
flowFlow componentsstringEntity annotationEventCatalog flow ID.

Exported types

The package exports these public types:

  • EventCatalogArchitectureGraphDepth
  • EventCatalogArchitectureGraphEntityPageProps
  • EventCatalogDocumentationEntityPageProps
  • EventCatalogEmbedTheme
  • EventCatalogEmbedThemeProps
  • EventCatalogFlowEntityPageProps
  • EventCatalogSystemContextMapEntityPageProps