Skip to content
Advertisement

add border when mouse hovered on MUI v5 table row

I created a table with Material UI v5 and now when the mouse pointer hovered on the table row I want to add a blue border to the table row.

I have tried a lot of ways and searched but I did not find any solution.

this is what I made so far:

codesandbox

Advertisement

Answer

You can check the online example here: https://codesandbox.io/s/reverent-faraday-6jb5yt

I did this:

JavaScript

Specifically, including on StyledTableRow these lines:

JavaScript
User contributions licensed under: CC BY-SA
7 People found this is helpful
Advertisement