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