T
TanStack3y ago
multiple-amethyst

How do I add padding or spacing or margin between virtualized elements?

title
2 Replies
flat-fuchsia
flat-fuchsia3y ago
hi, I think the easiest way is to include padding / margin in the item so from the virtualizer point of view the item size includes padding / margin
fair-rose
fair-rose3y ago
Yes, best is to add a padding to a row, margin should not be used as they collapse and that would lead to wrong calculation

Did you find this page helpful?