Skip to main content

ApiProvider

Home > @backstage/core-app-api > ApiProvider

Provides an ApiHolder for consumption in the React tree.

Signature:

ApiProvider: {
(props: PropsWithChildren<ApiProviderProps>): React.JSX.Element;
propTypes: {
apis: PropTypes.Validator<NonNullable<PropTypes.InferProps<{
get: PropTypes.Validator<(...args: any[]) => any>;
}>>>;
children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
};
}