Gruppe Adler navbar WebComponent.
This component can be found on npm.
import { GradNavbar } from '@gruppe-adler/navbar-component';
customElements.define('grad-navbar', GradNavbar);
sublinks-hidden
: If present the sub link bar will be hiddenactive-path
: Path to show as activenav-style
: Will be copied into style attribute of root nav element of component
The navbar emits a gradpathchanged
event, which includes two properties:
gradPath
: A string containing the active pathgradDisplayName
: A string containing the displayName of the link
Project is a simple Typescript, Webpack setup.
npm run serve
: Start development server on port 3000npm run lint
: Run eslintnpm run build
: Build for production