Preparing search index...
The search index is not available
React18 Loaders
React18 Loaders
hooks/use-theme
UseTheme
Interface UseTheme
interface
UseTheme
{
colorSchemePreference
:
ColorSchemePreference
;
resolvedColorScheme
:
"dark"
|
"light"
;
setColorSchemePreference
:
(
colorSchemePreference
:
ColorSchemePreference
,
)
=>
void
;
setTheme
:
(
theme
:
string
)
=>
void
;
systemColorScheme
:
"dark"
|
"light"
;
theme
:
string
;
}
Index
Properties
color
Scheme
Preference
resolved
Color
Scheme
set
Color
Scheme
Preference
set
Theme
system
Color
Scheme
theme
Properties
color
Scheme
Preference
colorSchemePreference
:
ColorSchemePreference
resolved
Color
Scheme
resolvedColorScheme
:
"dark"
|
"light"
set
Color
Scheme
Preference
setColorSchemePreference
:
(
colorSchemePreference
:
ColorSchemePreference
)
=>
void
set
Theme
setTheme
:
(
theme
:
string
)
=>
void
system
Color
Scheme
systemColorScheme
:
"dark"
|
"light"
theme
theme
:
string
Settings
Member Visibility
Protected
Inherited
Theme
OS
Light
Dark
On This Page
Properties
color
Scheme
Preference
resolved
Color
Scheme
set
Color
Scheme
Preference
set
Theme
system
Color
Scheme
theme
React18 Loaders
Loading...