gnir-work / react-window-dynamic-list

A naive approach to virtualizing a dynamically sized list
49 stars 9 forks source link

Scrollbar style prop #10

Closed seahorsepip closed 4 years ago

seahorsepip commented 4 years ago

What about a prop to pass scrollbar CSS to style the measure layer instance so that custom scrollbar widths are possible?

Currently I'm using the following workaround, but that wouldn't work with multiple instances on the same page:

<>
  <DynamicList/>
  <style>
  {`
    #measure-layer *::-webkit-scrollbar {
      width: 20px;
    }
  `}
  </style>
</>