diff --git a/docs/api/virtualizer.md b/docs/api/virtualizer.md index 946d1124..832bd1fa 100644 --- a/docs/api/virtualizer.md +++ b/docs/api/virtualizer.md @@ -201,6 +201,13 @@ gap?: number This option allows you to set the spacing between items in the virtualized list. It's particularly useful for maintaining a consistent visual separation between items without having to manually adjust each item's margin or padding. The value is specified in pixels. +### `lanes` + +```tsx +lanes: number +``` + +The number of lanes the list is divided into (aka columns for vertical lists and rows for horizontal lists). ## Virtualizer Instance @@ -305,14 +312,6 @@ You can also use this method with a throttled ResizeObserver instead of `Virtual > ⚠️ Please be aware that manually changing the size of an item when using `Virtualizer.measureElement` to monitor that item, will result in unpredictable behaviour as the `Virtualizer.measureElement` is also changing the size. However you can use one of resizeItem or measureElement in the same virtualizer instance but on different item indexes. -### `lanes` - -```tsx -lanes: number -``` - -The number of lanes the list is divided into (aka columns for vertical lists and rows for horizontal lists). - ### `scrollRect` ```tsx