bvaughn / react-window

React components for efficiently rendering large lists and tabular data
https://react-window.now.sh/
MIT License
15.54k stars 779 forks source link

FixedSizeGrid should accept innerStyle as a prop and pass it down to inner element #688

Open imovishek opened 1 year ago

imovishek commented 1 year ago

Problem:

image

Look at the span element, it's an inner element of a FixedSizeGrid, which style we can't custom. I think there should be a way to do that. It's necessary when we apply grid/flex on the parent container.

Solution: Proposing a new prop to the CommonProps the innerStyle same as style and this will be pass down to the innerElement on createGridComponent.js

Screenshot 2022-11-14 at 1 31 39 AM