From 45ae1bd7a8347ea8e86ea4a4c23f4ad32104fa00 Mon Sep 17 00:00:00 2001 From: Liam Reihwald Date: Thu, 6 Jun 2024 17:02:23 +0200 Subject: [PATCH] feat: add documentation for shadowDOMTarget (#1709) --- docs/framework/react/devtools.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/docs/framework/react/devtools.md b/docs/framework/react/devtools.md index e23650236e..df3435a053 100644 --- a/docs/framework/react/devtools.md +++ b/docs/framework/react/devtools.md @@ -124,6 +124,9 @@ function App() { - `position?: "top-left" | "top-right" | "bottom-left" | "bottom-right"` - Defaults to `bottom-left` - The position of the TanStack Router logo to open and close the devtools panel +- `shadowDOMTarget?: ShadowRoot` + - Specifies a Shadow DOM target for the devtools. + - By default, devtool styles are applied to the `` tag of the main document (light DOM). When a `shadowDOMTarget` is provided, styles will be applied within this Shadow DOM instead. ## Embedded Mode