Releases: inokawa/virtua
Releases · inokawa/virtua
0.21.0
- BREAKING CHANGE: RTL support for horizontal virtualization in Chrome earlier than v85 was dropped. Use older version if needed.
What's Changed
- Migrate to vitest by @inokawa in #327
- Improve wheel event handling by @inokawa in #328
- Refactor scroll normalization and drop RTL support for legacy Chrome by @inokawa in #329
- Add story with auto-animate by @inokawa in #330
- Support iframe by @inokawa in #331
Full Changelog: 0.20.5...0.21.0
0.20.5
0.20.4
0.20.3
0.20.2
0.20.1
0.20.0
BREAKING CHANGES
- Incomplete padding support was dropped from
VList
. UseVirtualizer
andstartMargin
/endMargin
prop instead.
// VList
<VList style={{ paddingTop:20, paddingBottom: 40 }}>
{createRows(1000)}
</VList>
// Virtualizer
<div style={{ overflowY: 'auto', overflowAnchor: "none" }}>
<div style={{ height: 20 }}/>
<Virtualizer startMargin={20} endMargin={40}>
{createRows(1000)}
</Virtualizer>
<div style={{ height: 40 }}/>
</div>
components.Root
prop ofVList
was removed. UseVirtualizer
instead. If you want to customize scrollable element, just pass props to wrapper div. If you want to customize inner element, useas
prop ofVirtualizer
.
// VList
<VList components={{ Root: ViewportComponent }}>
{createRows(1000)}
</VList>
// Virtualizer
<div style={{ overflowY: 'auto' }}>
<Virtualizer as={ContainerComponent}>
{createRows(1000)}
</Virtualizer>
</div>
WVList
was renamed and changed toWindowVirtualizer
because it has similar usability toVirtualizer
. It's wrapper div was removed so add it by yourself if you need to apply some styles.
// WVList
<div style={{ padding: 200 }}>
<WVList style={{ border: "solid 1px gray" }}>
{createRows(1000)}
</WVList>
</div>
// WindowVirtualizer
<div style={{ padding: 200 }}>
<div style={{ border: "solid 1px gray" }}>
<WindowVirtualizer>{createRows(1000)}</WindowVirtualizer>
</div>
</div>
components.Item
prop ofVList
was renamed toitem
initialItemSize
prop was renamed toitemSize
onScrollStop
prop was renamed toonScrollEnd
What's Changed
Full Changelog: 0.19.2...0.20.0