Skip to content

Commit

Permalink
feat(NavMenu): Add exact prop to links
Browse files Browse the repository at this point in the history
  • Loading branch information
maxime-gendron committed Feb 16, 2021
1 parent d665eea commit b541c65
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/react/src/components/nav-menu/nav-menu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ const ListItemLink = styled(NavLink)<ListItemLinkProps>`
`;

export interface NavMenuOption {
exact?: boolean;
href: string;
// Option label, if not provided will be set with value
label?: string;
Expand Down Expand Up @@ -123,6 +124,7 @@ export const NavMenu = forwardRef(({
<li key={option.id}>
<ListItemLink
data-testid={`listitem-${option.value}`}
exact={option.exact}
innerRef={option.ref}
$device={device}
to={option.href}
Expand Down

0 comments on commit b541c65

Please sign in to comment.