Skip to content

Commit bf2546f

Browse files
authored
docs(devtools): add missing 'theme' option (TanStack#10621)
1 parent 3ae4261 commit bf2546f

4 files changed

Lines changed: 18 additions & 0 deletions

File tree

docs/framework/preact/devtools.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,3 +85,6 @@ function App() {
8585
- `shadowDOMTarget?: ShadowRoot`
8686
- Default behavior will apply the devtool's styles to the head tag within the DOM.
8787
- Use this to pass a shadow DOM target to the devtools so that the styles will be applied within the shadow DOM instead of within the head tag in the light DOM.
88+
- `theme?: "light" | "dark" | "system"`
89+
- Defaults to `system`.
90+
- Set this to change the theme of the devtools panel.

docs/framework/react/devtools.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,9 @@ function App() {
9292
- `shadowDOMTarget?: ShadowRoot`
9393
- Default behavior will apply the devtool's styles to the head tag within the DOM.
9494
- Use this to pass a shadow DOM target to the devtools so that the styles will be applied within the shadow DOM instead of within the head tag in the light DOM.
95+
- `theme?: "light" | "dark" | "system"`
96+
- Defaults to `system`.
97+
- Set this to change the theme of the devtools panel.
9598

9699
## Embedded Mode
97100

@@ -135,6 +138,9 @@ function App() {
135138
- `shadowDOMTarget?: ShadowRoot`
136139
- Default behavior will apply the devtool's styles to the head tag within the DOM.
137140
- Use this to pass a shadow DOM target to the devtools so that the styles will be applied within the shadow DOM instead of within the head tag in the light DOM.
141+
- `theme?: "light" | "dark" | "system"`
142+
- Defaults to `system`.
143+
- Set this to change the theme of the devtools panel.
138144

139145
## Devtools in production
140146

docs/framework/solid/devtools.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,3 +85,6 @@ function App() {
8585
- `shadowDOMTarget?: ShadowRoot`
8686
- Default behavior will apply the devtool's styles to the head tag within the DOM.
8787
- Use this to pass a shadow DOM target to the devtools so that the styles will be applied within the shadow DOM instead of within the head tag in the light DOM.
88+
- `theme?: "light" | "dark" | "system"`
89+
- Defaults to `system`.
90+
- Set this to change the theme of the devtools panel.

docs/framework/vue/devtools.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,9 @@ import { VueQueryDevtools } from '@tanstack/vue-query-devtools'
8080
- `shadowDOMTarget?: ShadowRoot`
8181
- Default behavior will apply the devtool's styles to the head tag within the DOM.
8282
- Use this to pass a shadow DOM target to the devtools so that the styles will be applied within the shadow DOM instead of within the head tag in the light DOM.
83+
- `theme?: "light" | "dark" | "system"`
84+
- Defaults to `system`.
85+
- Set this to change the theme of the devtools panel.
8386

8487
## Embedded Mode
8588

@@ -121,6 +124,9 @@ function toggleDevtools() {
121124
- `shadowDOMTarget?: ShadowRoot`
122125
- Default behavior will apply the devtool's styles to the head tag within the DOM.
123126
- Use this to pass a shadow DOM target to the devtools so that the styles will be applied within the shadow DOM instead of within the head tag in the light DOM.
127+
- `theme?: "light" | "dark" | "system"`
128+
- Defaults to `system`.
129+
- Set this to change the theme of the devtools panel.
124130

125131
## Traditional Devtools
126132

0 commit comments

Comments
 (0)