Skip to main content

useShadowRootElements

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

Convenience hook for use within TechDocs addons that provides access to elements that match a given selector within the shadow root.

Signature:

useShadowRootElements: <TReturnedElement extends HTMLElement = HTMLElement>(selectors: string[]) => TReturnedElement[]