jacobworrel / react-windowed-select

An integration of react-window with react-select to efficiently render large lists.
MIT License
142 stars 38 forks source link

Height and multiple option components #29

Open martinkadlec0 opened 4 years ago

martinkadlec0 commented 4 years ago

Hey, I have a select that can show multiple different option components. Each type has a different height. Is there a place somewhere where I can get the option object and set height accordingly so it would work with react-window? To simplify, the options could look like

[
{label: 'Foo', value: 'foo', height: 10},
{label: 'Foo', value: 'foo', height: 10},
{label: 'Foo', value: 'foo', height: 20},
{label: 'Foo', value: 'foo', height: 20},
]
jacobworrel commented 4 years ago

@martinkadlec0 This is not supported currently but I suggest submitting a PR. Thanks!