1.0.5 • Published 2 years ago
reactnavbar-tailwind v1.0.5
reactnavbar-tailwind
It is a responsive navbar component for react apps
Install
npm install --save reactnavbar-tailwind
Usage
import React from 'react'
import { NavBar } from 'reactnavbar-tailwind'
import 'reactnavbar-tailwind/dist/index.css'
export default function App() {
const solutions = [
{
name: 'Home',
href: '/'
},
{
name: 'About',
href: '/about'
},
{
name: 'Contact',
href: '/contact'
}
]
return (
<NavBar
styleTop={`sticky bg-blue-500 text-white`}
logoImage={true}
logoName={`https://www.google.com/images/branding/googlelogo/2x/googlelogo_light_color_92x30dp.png`}
solutions={solutions}
/>
)
}
License
MIT © kumard3