update changeset and use createReactExtension
Signed-off-by: nikolar <reyna.nikolayev@autodesk.com>
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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: () =>
|
||||
|
||||
Reference in New Issue
Block a user