0.5.2 • Published 7 months ago

@cartdotcom/left-nav v0.5.2

Weekly downloads
-
License
-
Repository
-
Last release
7 months ago

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

  1. 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

ParameterDescriptionDefault
openFor responsiveness, you can define if the LeftNav should be open or closed (Example: clicking a hamburger icon in your applications' header)true
0.5.0

7 months ago

0.4.0

8 months ago

0.5.2

7 months ago

0.5.1

7 months ago

0.3.0

1 year ago