Skip to content

<ThemeProvider>

Applies a theme’s variables as inline style on a wrapper <div data-theme="..."> and provides ThemeContext.

import { ThemeProvider, dark } from '@react-slides/themes'
<ThemeProvider theme={dark}>
<Slide></Slide>
</ThemeProvider>
NameTypeDefaultDescription
themeThemeTheme to apply.
childrenReactNodeSubtree.