react-module-example

1.0.0 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i react-module-example

Weekly Downloads

5

Version

1.0.0

License

none

Unpacked Size

52.9 kB

Total Files

22

Last publish

Collaborators

  • kaikala