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, nohttp://
orwww
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 theLink
component and it will be used for rendering links