We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d0826a8 commit fe4f8caCopy full SHA for fe4f8ca
1 file changed
packages/theme/README.md
@@ -59,6 +59,12 @@ To set custom localStorage key set `preferencesStorageKey` property for user pre
59
<ThemeProvider preferencesStorageKey={"OPTIONAL_APP_THEME_STORAGE_KEY"}>
60
```
61
62
+To save user preferences in cookies, provide `cookiesKey` prop as a cookie key string
63
+
64
+```tsx
65
+<ThemeProvider cookiesKey={"theme-preferences"}>
66
+```
67
68
### Hook `useTheme`
69
70
- `isDarkTheme` is a`boolean` what color scheme is selected, basing on user preferences and system
0 commit comments