0.5.2 • Published 7 months ago
@cartdotcom/left-nav v0.5.2
The LeftNav component is a customizable navigation menu that can be used to display a list of links and submenus in a sidebar on the left side of a webpage.
This is the initial implementation of a shared LeftNav to be used by the Channels project.
Usage
Add the following script tag:
<script src="https://unpkg.com/@cartdotcom/left-nav@latest/bundle.js"></script>
- You can replace `@latest` with any specific version (eg. `1.0.4`).
2. When the script is loaded, you can use it as a web component:
```html
<cart-left-nav open="true"></cart-left-nav>
Parameters
Parameter | Description | Default |
---|---|---|
open | For responsiveness, you can define if the LeftNav should be open or closed (Example: clicking a hamburger icon in your applications' header) | true |