vj-top-bar
To use horizontal top header bar with logo & menu links
Install
npm install vj-top-bar -S
Usage
<!-- Image URL --> VJ-Topbar <!-- Empty logo --> VJ-Topbar <!-- Relative path Image --> VJ-Topbar
Logo Title
VJ-Topbar
// To assign links & config attributes of vj-top-bar Web componentconst topBar = document;if topBar && topBarlength && topBar0 const element = topBar0; const config = 'bg-color': '#de6b6b' ; element; element;<script> </script>
Attributes
logo
Accepts logo image in any one of the format (Url, relative path). Else default logo will be shown.
config
For configuring such as background-color of top-bar
links
For having menu links which expects an array of objects each object has address and anchorText properties
License
MIT © Srinivasan K K