Skip to content

Commit 4e0c28d

Browse files
author
designcise
committed
docs: added autoAntiFlicker to ThemeProvider api
1 parent 637ba90 commit 4e0c28d

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

README.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -204,11 +204,12 @@ That's it! You should have light/dark theme toggle in your Next.js application.
204204
205205
You can pass the following props to `ThemeProvider`:
206206
207-
| Prop | Type | Description |
208-
|--------------|:--------------------------------------------:|:------------------------------------------------------------:|
209-
| `children` | `React.ReactChild`|`React.ReactChild[]` | Components to which the theme is passed down to via context. |
210-
| `storageKey` | String | Name of the key used for storage. |
211-
| `theme` | String | Starting theme; can be `'light'` or `'dark'`. |
207+
| Prop | Type | Description |
208+
|-------------------|:--------------------------------------------:|:------------------------------------------------------------:|
209+
| `children` | `React.ReactChild`|`React.ReactChild[]` | Components to which the theme is passed down to via context. |
210+
| `storageKey` | String | Name of the key used for storage. |
211+
| `theme` | String | Starting theme; can be `'light'` or `'dark'`. |
212+
| `autoAntiFlicker` | Boolean | If `true`, injects an inline anti-flicker script to DOM. |
212213
213214
### `useTheme()`
214215

0 commit comments

Comments
 (0)