Skip to content

Commit

Permalink
fix(NavItem): fix incorrect component typing (#9579)
Browse files Browse the repository at this point in the history
  • Loading branch information
kmcfaul authored Sep 13, 2023
1 parent e0b0089 commit f5aced1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/react-core/src/components/Nav/NavItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export interface NavItemProps extends Omit<React.HTMLProps<HTMLAnchorElement>, '
/** Callback for item click */
onClick?: NavSelectClickHandler;
/** Component used to render NavItems if React.isValidElement(children) is false */
component?: React.ReactNode;
component?: React.ElementType<any> | React.ComponentType<any>;
/** Flyout of a nav item. This should be a Menu component. Should not be used if the to prop is defined. */
flyout?: React.ReactElement;
/** Callback when flyout is opened or closed */
Expand Down

0 comments on commit f5aced1

Please sign in to comment.