React PDF Viewer
Docs
Plugins
Localizations
Examples
Updates
Purchase
Use the dark theme
Starting from v2.6.0, the
`Viewer`
component provides a built-in dark theme. If you want to use the dark theme, then set the
`theme`
option:
<
Viewer
theme
=
"dark"
/
>
(
The sample code
)
See also
Switch to the dark or light theme automatically
Use the default button to switch themes
Use the last chosen theme