ThemeProvider

A provider that manages theme switching for the application.

Installation

Import the component from the passport-ui package.

components/example.tsx
1
import { ThemeProvider } from "passport-ui";

Usage

Basic example showing how to use the component.

components/example.tsx
1
2
3
<ThemeProvider attribute="class" defaultTheme="system" enableSystem>
{/* Your app content */}
</ThemeProvider>

Additional resources

Documentation and examples are available in Storybook.