Skip to main content

transformV5ComponentThemesToV4()

Home > @backstage/theme > transformV5ComponentThemesToV4

Transform Material UI v5 component themes into a v4 theme props and overrides.

Signature:

function transformV5ComponentThemesToV4(theme: Theme, components?: ThemeOptions['components']): {
overrides: Overrides;
props: ComponentsProps;
};

Parameters

Parameter

Type

Description

theme

Theme

components

ThemeOptions['components']

(Optional)

**Returns:**

{ overrides: Overrides; props: ComponentsProps; }