Skip to main content

useShadowRoot()

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

Hook for use within TechDocs addons that provides access to the underlying shadow root of the current page, allowing the DOM within to be mutated.

Signature:

useShadowRoot: () => ShadowRoot | undefined

Returns:

ShadowRoot | undefined