How to use the @patternfly/patternfly/components/Nav/nav.css.navLink function in @patternfly/patternfly

To help you get started, we’ve selected a few @patternfly/patternfly examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github patternfly / patternfly-react / packages / patternfly-4 / react-core / src / components / Nav / NavItem.js View on Github external
{context => (
        <a href="{to}"> context.onSelect(e, groupId, itemId, to, preventDefault, onClick)}
          className={css(styles.navLink, isActive &amp;&amp; styles.modifiers.current, className)}
          aria-current={isActive ? 'page' : null}
          {...rest}
        &gt;
          {children}
        </a>
      )}
github patternfly / patternfly-react / packages / patternfly-4 / react-core / src / components / Nav / NavItem.js View on Github external
{context =>
        React.cloneElement(children, {
          onClick: e => context.onSelect(e, groupId, itemId, to, preventDefault, onClick),
          className: css(styles.navLink, isActive && styles.modifiers.current, className),
          'aria-current': isActive ? 'page' : null
        })
      }