dialog-react-library

1.0.6 • Public • Published

reactjs-dialog-library

Overview

reactjs-alert-library is a simple and customizable alert component for React applications, It provides a smooth and modern alert that integrates seamlessly with your React project, making it easy to show popup.

Features

  • Easy Integration: Quickly integrate the alert component into your existing React projects.
  • Customizable: Easily customize the styles to match your application's design.

Installation

Install the package via npm:

npm install @ljthao/alert-react-library

Usage

  1. Import the SideNav component:
import React from 'react';
import { BrowserRouter as Router, Route, Routes } from 'react-router-dom';
import SideNav from 'my-react-side-nav';
import Home from './components/Home';
import About from './components/About';
import Contact from './components/Contact';
import './App.css'; // Your custom styles

const App = () => {
  return (
    <Router>
      <div className="App">
        <SideNav />
        <div className="main-content">
          <Routes>
            <Route path="/" element={<Home />} />
            <Route path="/about" element={<About />} />
            <Route path="/contact" element={<Contact />} />
          </Routes>
        </div>
      </div>
    </Router>
  );
};

export default App;
  1. Customize SideNav styles: You can customize the styles by modifying the CSS file or by using inline styles. Example CSS (SideNav.css):
.sidenav {
  height: 100%;
  width: 200px;
  position: fixed;
  top: 0;
  left: 0;
  background-color: #111;
  padding-top: 20px;
}

.sidenav a {
  padding: 10px 15px;
  text-decoration: none;
  font-size: 18px;
  color: #818181;
  display: block;
}

.sidenav a:hover {
  color: #f1f1f1;
}

Contributing

Contributions are welcome! Please open an issue or submit a pull request if you have any improvements or bug fixes.

License

This project is licensed under the MIT License. See the LICENSE file for details.

Links

Dependencies (0)

    Dev Dependencies (3)

    Package Sidebar

    Install

    npm i dialog-react-library

    Weekly Downloads

    1

    Version

    1.0.6

    License

    ISC

    Unpacked Size

    3.61 kB

    Total Files

    7

    Last publish

    Collaborators

    • ljthao