0.1.7 • Published 5 months ago

@mip-ui/theme-toggle v0.1.7

Weekly downloads
-
License
-
Repository
-
Last release
5 months ago

@mip-ui/theme-toogle

React theme toggler component for switching between light and dark modes.
Part of the @mip-ui component library.


📦 Installation

pnpm add @mip-ui/theme-toogle lucide-react react

@mip-ui/theme-toogle requires the following peer dependencies:

  • react >=19

  • lucide-react >=0.484.0

  • tailwindcss v4

🔧 Usage

1. Wrap your app with the ThemeProvider:

import { ThemeProvider } from "@mip-ui/theme-toogle";

function App() {
  return (
    <ThemeProvider>
      <YourApp />
    </ThemeProvider>
  );
}

2. Add the toggle button

import { ModeToggle } from "@mip-ui/theme-toogle";

<ModeToggle />;

💡 Features

  • 🌗 Switch between light and dark mode

  • 💾 Saves preference in localStorage

  • 🎨 Applies Tailwind class on (dark or light)

  • ⚙️ Simple API and customizable

  • 🤝 Designed to work seamlessly with Tailwind CSS and Lucide Icons

0.1.7

5 months ago

0.1.6

5 months ago

0.1.5

5 months ago

0.1.4

6 months ago

0.1.3

6 months ago

0.1.2

6 months ago

0.1.1

7 months ago

0.1.0

7 months ago