formidable-landers icon indicating copy to clipboard operation
formidable-landers copied to clipboard

Feature: Custom nav-link component

Open alex-saunders opened this issue 6 years ago • 0 comments

  • Adds the navItem prop to the <Header> component - a function which takes in a href/link for the given nav item and must return a component. The returned component is then rendered for each <NavLink> (defaulting to an anchor tag)
    • Allows for custom components to be used as links, such as Gatsby's <Link>, e.g:
screen shot 2018-07-13 at 12 39 02

Aims to fix problems with https://github.com/FormidableLabs/formidable.com/pull/495

alex-saunders avatar Jul 13 '18 11:07 alex-saunders