react-module-example
Installation
Install react-module-example with npm
npm i react-module-example
import { SmartNav } from 'react-module-example';
import { BrowserRouter } from 'react-router-dom';
const LINKS = [{
display: "Users",
url: "/1",
},
{
display: "Products",
url: "/2",
},
{
display: "Demo",
url: "/3",
}]
export const Example = () =>
<>
<BrowserRouter>
<SmartNav
bg='#0b4a91'
font=''Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif'
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 |