T
TanStack3y ago
unwilling-turquoise

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

title
2 Replies
genetic-orange
genetic-orange3y 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
harsh-harlequin
harsh-harlequin3y 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?