0.1.5 • Published 2 years ago
smartnav v0.1.5
smartnav
Installation
Install smartnav with npm
npm i smartnavimport { SmartxNav } from 'smartnav';
import { BrowserRouter } from 'react-router-dom';
const LINKS = [{
display: "MyDemo",
url: "/1",
},
{
display: "Products",
url: "/2",
},
{
display: "Finals",
url: "/3",
}]
export const Example = () =>
<>
<BrowserRouter>
<SmartxNav
bg='#0b4a91'
nav = LINKS
/>
</BrowserRouter>
</>Props
| Props | Types | Description |
|---|---|---|
| bg | Str | Background colour for navbar with '#xxxxx' |
| font | Str | String of React native Fonts |
| nav | Object Array | Requires display and url fields |