update changeset and use createReactExtension

Signed-off-by: nikolar <reyna.nikolayev@autodesk.com>
This commit is contained in:
nikolar
2023-10-05 15:34:37 -07:00
parent 302316d231
commit be94a7ca85
2 changed files with 21 additions and 2 deletions
+19 -1
View File
@@ -2,4 +2,22 @@
'@backstage/plugin-home': patch
---
Added a new Featured Docs component to plugin-home, which can display any entity given a filter
Added a new Featured Docs component to `plugin-home`, which can display any entity given a filter.
```
import { FeaturedDocs } from '@backstage/plugin-home';
<FeaturedDocs
filter={{
'spec.type': 'documentation',
'metadata.name': 'getting-started-with-backstage',
}}
title={cardTitleReactNode}
customStyles={styles}
subLinkText="More Details"
color="secondary"
emptyState={emptyStateReactNode}
/>
```
See the [storybook examples](https://backstage.io/storybook/?path=/story/plugins-home-components-featureddocs--default)
+2 -1
View File
@@ -19,6 +19,7 @@ import {
createComponentExtension,
createPlugin,
createRoutableExtension,
createReactExtension,
identityApiRef,
storageApiRef,
} from '@backstage/core-plugin-api';
@@ -217,7 +218,7 @@ export const HomePageRecentlyVisited = homePlugin.provide(
* @public
*/
export const FeaturedDocs = homePlugin.provide(
createComponentExtension({
createReactExtension({
name: 'FeaturedDocs',
component: {
lazy: () =>