0.0.12 • Published 3 years ago
react-glowingnav v0.0.12
Installation
npm i react-glowingnav-pickupbiz
npm i react-router-dom
Usage in your app
Import to App.js
import { BrowserRouter, Routes, Route } from "react-router-dom";
import { Counter } from "./components/Counter";
import { ProductsList } from "./components/ProductsList";
import { BikeList } from "./components/BikeList";
import { GlowingNav } from "react-glowingnav-pickupbiz";
Add below
return (
<BrowserRouter>
<GlowingNav links={links} type="modern" />
<Routes>
<Route path="/" element={<Counter />} />
<Route path="/products" element={<ProductsList />} />
<Route path="/bikes" element={<BikeList />} />
</Routes>
</BrowserRouter>
);
Your component follow below steps
Declare the links array
const links = [
{
title: "Home",
url: "/",
},
{
title: "Products",
url: "/products",
},
{
title: "Bikes",
url: "/bikes",
},
];
Add the below for Navigation to your component where you want to add it
<GlowingNav links={links} />
Add below to your header tag of index.html
<link
rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css"
/>
Reference
https://levelup.gitconnected.com/publish-react-components-as-an-npm-package-7a671a2fb7f
About Us
0.0.12
3 years ago
0.0.11
3 years ago
0.0.10
3 years ago
0.1.6
3 years ago
0.1.5
3 years ago
0.1.4
3 years ago
0.1.3
3 years ago
0.1.2
3 years ago
0.1.1
3 years ago
0.1.0
3 years ago
0.0.9
3 years ago
0.0.8
3 years ago
0.0.7
3 years ago
0.0.6
3 years ago
0.0.5
3 years ago
0.0.4
3 years ago
0.0.3
3 years ago
0.0.2
3 years ago
0.0.1
3 years ago