docs/frontend-system: add core feature extension types

Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
This commit is contained in:
Patrik Oldsberg
2024-01-09 23:15:53 +01:00
parent 07b40ecb87
commit 894497677b
2 changed files with 18 additions and 0 deletions
@@ -199,3 +199,5 @@ const exampleEntityContent = createEntityContentExtension({
```
The `ExampleEntityContent` itself is again a regular React component where you can implement any functionality you want. To access the entity that the content is being rendered for, you can use the `useEntity` hook from `@backstage/plugin-catalog-react`. You can see a full list of API provided by the catalog React library in [the API reference](../../reference/plugin-catalog-react.md).
For a more complete list of the different types of extensions that you can create for your plugin, see the [extension types](./03-extension-types.md) section.
@@ -41,3 +41,19 @@ Theme extensions provide custom themes for the app. They are always attached to
### Translation - [Reference](../../reference/frontend-plugin-api.createtranslationextension.md)
Translation extension provide custom translation messages for the app. They can be used both to override the default english messages to custom ones, as well as provide translations for additional languages.
## Core feature extension types
These are the extension types provided by the Backstage core feature plugins.
### EntityCard - [Reference](../../reference/plugin-catalog-react.createentitycardextension.md)
Creates entity cards to be displayed on the entity pages of the catalog plugin.
### EntityContent - [Reference](../../reference/plugin-catalog-react.createentitycontentextension.md)
Creates entity content to be displayed on the entity pages of the catalog plugin.
### SearchResultListItem - [Reference](../../reference/plugin-search-react.createsearchresultlistitemextension.md)
Creates search result list items for different types of search results, to be displayed in search result lists.