Skip to main content
Version: Next

createCardExtension()

Home > @backstage/plugin-home-react > createCardExtension

An extension creator to create card based components for the homepage

Signature:

function createCardExtension<T>(options: {
title?: string;
components: () => Promise<ComponentParts>;
name?: string;
description?: string;
layout?: CardLayout;
settings?: CardSettings;
}): import("@backstage/core-plugin-api").Extension<(props: CardExtensionProps<T>) => React.JSX.Element>;

Parameters

Parameter

Type

Description

options

{ title?: string; components: () => Promise<ComponentParts>; name?: string; description?: string; layout?: CardLayout; settings?: CardSettings; }

**Returns:**

import("@backstage/core-plugin-api").Extension<(props: CardExtensionProps<T>) => React.JSX.Element>