reactjsreact-virtualized

react-virtualized - Is there a way to add hover style on rows of the Table


When we user hovers on the row, the background color of the respective row should change to #e7e7e7.


Solution

  • I'm using styled-components in my project and this is how you can style the row using it.

    const StyledTable = styled(Table)`
        .ReactVirtualized__Table__row {
            :hover {
                background: red;
            }
        }
    `;
    

    I think you're using the wrong selector.

    What styling lib are you using?