1import { ThemeProvider } from "passport-ui";
1<ThemeProvider attribute="class" defaultTheme="system" enableSystem>2 {/* Your app content */}3</ThemeProvider>
A provider that manages theme switching for the application.
Import the component from the passport-ui package.
1import { ThemeProvider } from "passport-ui";
Basic example showing how to use the component.
1<ThemeProvider attribute="class" defaultTheme="system" enableSystem>2 {/* Your app content */}3</ThemeProvider>
Documentation and examples are available in Storybook.