1.0.1 • Published 1 year ago

simple-react-dark-mode v1.0.1

Weekly downloads
-
License
MIT
Repository
-
Last release
1 year ago

Dark Mode Switcher

A simple dark mode toggle button for React.

Installation

Install the package using npm:

npm install simple-react-dark-mode


import React from 'react';
import DarkModeToggle from '@your-username/dark-mode-switcher';

const App = () => {
  return (
    <div>
      <DarkModeToggle position="absolute" top="10px" left="10px" />
    </div>
  );
};

export default App;


Props
position (string): CSS position property for the button (default: 'fixed').
top (string): CSS top property for the button (default: '20px').
left (string): CSS left property for the button (default: '20px').
1.0.1

1 year ago

1.0.0

1 year ago