UNPKG

@codesandbox/sandpack-react

Version:

<img style="width:100%" src="https://user-images.githubusercontent.com/4838076/143581035-ebee5ba2-9cb1-4fe8-a05b-2f44bd69bb4b.gif" alt="Component toolkit for live running code editing experiences" />

21 lines (20 loc) 630 B
import * as React from "react"; import type { SandpackTheme, SandpackThemeProp } from "../types"; declare const SandpackThemeContext: React.Context<{ theme: SandpackTheme; id: string; mode: "dark" | "light" | "auto"; }>; /** * @category Theme */ declare const SandpackThemeProvider: React.FC<React.HTMLAttributes<HTMLDivElement> & { theme?: SandpackThemeProp; children?: React.ReactNode; }>; declare const SandpackThemeConsumer: React.Consumer<{ theme: SandpackTheme; id: string; mode: "dark" | "light" | "auto"; }>; export { SandpackThemeProvider, SandpackThemeConsumer, SandpackThemeContext };