Apply theme class to document body
Class name for light theme (default: "light")
Class name for dark theme (default: "dark")
function App() { useDocumentTheme("theme-light", "theme-dark"); return <MyWidget />;} Copy
function App() { useDocumentTheme("theme-light", "theme-dark"); return <MyWidget />;}
Apply theme class to document body