Skip to content

Commit

Permalink
docs: Move lanes under the correct section (#691)
Browse files Browse the repository at this point in the history
  • Loading branch information
beefchimi authored Mar 20, 2024
1 parent 2317e38 commit 3bf3ae1
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions docs/api/virtualizer.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 3bf3ae1

Please sign in to comment.