Skip to main content
Version: Next

useTechDocsAddons()

Home > @backstage/plugin-techdocs-react > useTechDocsAddons

hook to use addons in components

Signature:

useTechDocsAddons: () => {
renderComponentByName: (name: string) => JSX.Element | null;
renderComponentsByLocation: (location: keyof typeof TechDocsAddonLocations) => (JSX.Element | null)[] | null;
}

Returns:

{ renderComponentByName: (name: string) => JSX.Element | null; renderComponentsByLocation: (location: keyof typeof TechDocsAddonLocations) => (JSX.Element | null)[] | null; }