menu
Channels
# All channels
view-forward
# General
view-forward
# Help me
view-forward
# Requests
view-forward
Team

How to pass props to component passed in to is props in <Menu.Item>

May 13, 2020 at 3:40pm

How to pass props to component passed in to is props in <Menu.Item>

May 13, 2020 at 3:40pm
Hi there. first of all, evergreen ui rocks \m|.
In the Menu.Item docs, it says that Menu Item can be passed in is props which accept a React Component Class. How do I pass in a prop to the component? I am trying to pass in <ReactRouterLink>'s to prop into the component. Thanks.

May 16, 2020 at 5:58pm
<MenuItem is={ReactRouterLink} to={someUrl}>...</MenuItem>
  • reply
  • like