ThemeProvider

A provider that manages theme switching for the application.

Installation

Import the component from the passport-ui package.

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

Usage

Basic example showing how to use the component.

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

Additional resources

Documentation and examples are available in Storybook.