Skip to main content
Version: Next

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[]

Parameters

Parameter

Type

Description

selectors

string[]

**Returns:**

TReturnedElement[]