This package has been deprecated

Author message:

[DEPRECATED] - This package has been replaced by @hashicorp/react-subnav.This package is deprecated, and will no longer be maintained. Please check the hashicorp/react-components repository for a list of maintained packages, and file an issue if you need a replacement for this package.

@hashicorp/react-product-subnav

5.0.3 • Public • Published

Product Subnav

Sub-navigation that appears on product pages.

Props

  • dark (bool) - whether or not to use the dark theme
  • rootUrl (str) - root url of the website the component is rendering on, no http:// or www necessary
  • dropdownUrl (function) - function that is passed the product slug for each product in the navigation dropdown, whatever string you return will be used as the url for that product in the dropdown
  • data (obj) - object with all relevant data
    • products (arr) - products data passed in from datocms
    • subnav (obj) - subnav data passed in from datocms
  • Link [optional] (component) - if using nextjs, you can pass the Link component and it will be used for rendering links

Readme

Keywords

none

Package Sidebar

Install

npm i @hashicorp/react-product-subnav

Weekly Downloads

18

Version

5.0.3

License

MPL-2.0

Unpacked Size

56.2 kB

Total Files

6

Last publish

Collaborators

  • abhishek-hashicorp
  • dstaley
  • cameronperera
  • alexju
  • consul-ui-services
  • wenincode-hashicorp
  • hashicb
  • britt.lindgren
  • paulhcp
  • nandereck
  • tstormk
  • hashibot-hds
  • lackeyjb1
  • youriwims
  • jpogran
  • _natmegs
  • thrashr888
  • melsumner
  • mwickett
  • didoo
  • zchsh
  • hcitsec
  • gregone
  • meirish
  • enmod
  • kaxcode
  • anubhavmishra-hashicorp
  • hashibot-web
  • cstitt-hashi
  • kstraut
  • mocohen
  • dhaulagiri