How to add a link to a List in material-ui 1.0?

Posted by Jessica Taylor | Updated on

Want to add a link to a List in material-ui 1.0? The easiest way to accomplish this is to make the ListItem a link by using the component prop:

That way, the ListItem will be an anchor tag linking to the desired place, but still receive the appropriate styling so that there won’t be any visual changes.

The behavior of the component prop is documented here. Note that the href prop will be automatically passed to the anchor tag, as specified by the last line in the props documentation.


If you like this question & answer and want to contribute, then write your question & answer and email to freewebmentor[@]gmail.com. Your question and answer will appear on FreeWebMentor.com and help other developers.

Related Questions & Answers