1.0.0 • Published 6 months ago

react-navbar-library v1.0.0

Weekly downloads
-
License
MIT
Repository
-
Last release
6 months ago

React Navbar Library

A simple and customizable navigation bar component for React applications.

Installation

To install the library, run the following command:

npm install react-navbar-library

Usage

Import the Navbar component into your React application:

import Navbar from 'react-navbar-library';

Then, use the Navbar component in your JSX:

const links = [
  { name: 'Home', url: '/' },
  { name: 'About', url: '/about' },
  { name: 'Contact', url: '/contact' },
];

<Navbar brand="My Brand" links={links} />

Props

  • brand (string): The name of the brand displayed in the navbar.
  • links (array): An array of link objects, each containing:
    • name (string): The text to display for the link.
    • url (string): The URL the link points to.

Contributing

Contributions are welcome! Please open an issue or submit a pull request for any enhancements or bug fixes.

License

This project is licensed under the MIT License.

1.0.0

6 months ago