0.5.0 • Published 1 year ago

3shape-global-nav v0.5.0

Weekly downloads
111
License
ISC
Repository
-
Last release
1 year ago

3shape-global-nav

How to use

Install packages

npm i 3shape-global-nav @webcomponents/webcomponentsjs

Add polyfill import

import '@webcomponents/webcomponentsjs/webcomponents-bundle.js';
// or dynamical
import '@webcomponents/webcomponentsjs/webcomponents-loader.js';

Add component import

import '3shape-global-nav';

Use tag

<g-navigation
    env="{env}"
    username="{userName}"
    token="{token}"
    logouturl="{logoutUrl}"
></g-navigation>

Props

PropTypeDefaultDescription
{env}Stringnullcurrent environment. available options: 'test', 'staging', 'production'
{userName}Stringnullshows user name in account menu
{token}Stringnullthe same as {userName}. component decodes token for you and gets userName from it. if you specify {userName} - {token} will not work
{logoutUrl}Stringnulllink to logout page

How to develop

npm i
npm run watch
npm run serve

Go to http://localhost:8000

0.5.0

1 year ago

0.4.0

2 years ago

0.3.6

3 years ago

0.3.5

3 years ago

0.3.4

3 years ago

0.3.0

3 years ago

0.3.2

3 years ago

0.3.1

3 years ago

0.3.3

3 years ago

0.2.6

4 years ago

0.2.1

4 years ago

0.2.0

4 years ago

0.2.3

4 years ago

0.2.2

4 years ago

0.2.5

4 years ago

0.2.4

4 years ago

0.1.8

4 years ago

0.1.7

4 years ago

0.1.4

4 years ago

0.1.3

4 years ago

0.1.6

4 years ago

0.1.5

4 years ago

0.1.2

4 years ago

0.1.1

4 years ago

0.1.0

4 years ago