Files
backstage/.changeset/old-glasses-tickle.md
T
2021-02-10 18:45:40 -05:00

702 B

@backstage/plugin-catalog
@backstage/plugin-catalog
patch

Adds an EntityLinksCard component to display entity.metadata.links on entity pages. The new component is a companion for the new Entity Links catalog model addition.

Here is an example usage within an EntityPage.tsx.

// in packages/app/src/components/catalog/EntityPage.tsx
const ComponentOverviewContent = ({ entity }: { entity: Entity }) => (
  <Grid container spacing={3} alignItems="stretch">
    <Grid item md={4} sm={6}>
      <EntityLinksCard />
      // or ...
      <EntityLinksCard cols={{ md: 2, lg: 3, xl: 4 }} />
    </Grid>
  </Grid>
);