Examples › Using bodyRef with AutoAnimate
The bodyRef property gives you access to the underlying <tbody> element of the table. You can hand it over to the excellent AutoAnimate library to smoothly animate rows as they are added, removed or reordered. Use the buttons below the table to see it in action:
No records
AutoAnimate tracks rows by their DOM elements, which Mantine DataTable keys by record ID. Make sure each record has a unique, stable ID (see non-standard record IDs if your records don’t have an id property); otherwise reordered rows will simply be re-rendered in place, without animation.
Warning
Heads up
Here is the code:
Head over to the next example to learn more.












