<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>| Name | Type | Default | Description |
|---|---|---|---|
theme | Theme | — | Theme to apply. |
children | ReactNode | — | Subtree. |