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
themeTheme—Theme to apply.
childrenReactNode—Subtree.
reset?booleantrueInclude the bundled reset and default slide typography. Its rules have no extra specificity, so your styles override them; pass false to style slides from scratch.