@inventage-web-components/portal-navigation
v1.8.0
Published
A component implementing an opinionated (but generic and hence configurable) navigation pattern.
Downloads
192
Maintainers
Readme
@inventage-web-components/portal-navigation
A component implementing an opinionated (but generic and hence configurable) navigation pattern.
Quick Start
Use jspm.dev to get a simple example running in a single HTML file:
<script type="module" src="https://jspm.dev/@inventage-web-components/portal-navigation/portal-navigation.js"></script>
<portal-navigation src="./test-data.json" currentApplication="app1" internalRouting></portal-navigation>
Here's an example of this method to get you started.
Installation
npm i @inventage-web-components/portal-navigation
Usage
<!--
Adjust path to node_modules and use a dev server that support Node module
resolution, like Web Dev server: https://www.npmjs.com/package/@web/dev-server
-->
<script
type="module"
src="/node_modules/@inventage-web-components/portal-navigation/lib/src/portal-navigation.js"
</script>
<portal-navigation src="/path/to/data.json"></portal-navigation>
Documentation
The API documentation as well as interactive examples can be found in the Storybook examples.