---
title: "Group rows animated icon"
description: "Group rows animated icon (Tables & analytics). Child rows push right under the header, then a section spine draws down to collect them; ungroup retracts the spine before the rows slide back."
canonical: https://generativeicons.com/icons/group-rows/
---

# Group rows animated icon

Child rows push right under the header, then a section spine draws down to collect them; ungroup retracts the spine before the rows slide back.

- Id: `group-rows`
- Category: Tables & analytics
- Search terms: group by, nested rows, nest, collapse rows, expand rows, hierarchy, subgroup, tree view, indent rows, categorize, sections, ungroup
- Two states: flat to grouped, played forward and back
- Styles: outline, solid, duotone; outline weights 1.5, 2, 2.5 (any from 1 to 3); motion light or strong
- File: https://generativeicons.com/assets/group-rows.lottie (dotLottie, 6673 bytes, sha256 f7b6021b49f0e563f789a5b5e0bd21e31e789d2167ac0d452616ff7445e26ec0)
- License: MIT

## Install

```sh
npm install @lottiefiles/generative-icons-runtime
npx generative-icons init
npx generative-icons add group-rows
```

## React

```tsx
// npm install @lottiefiles/generative-icons-react
'use client';
import { AnimatedIcon } from '@lottiefiles/generative-icons-react';
import icon, { src } from './generative-icons/group-rows.mjs';

export function GroupRowsIcon() {
  return <AnimatedIcon icon={icon} src={src} size={32}
    color="#ffffff" variant="outline" weight={2}
    motion="light" theme="dark" />;
}
```

## JavaScript

```js
import { createIcon } from '@lottiefiles/generative-icons-runtime';
import icon, { src } from './generative-icons/group-rows.mjs';

const handle = await createIcon(canvas, {
  icon, src,
  color: '#ffffff', style: 'outline', weight: 2,
  motion: 'light', theme: 'dark'
});
button.addEventListener('click', () => handle.play());
// On removal: handle.destroy();
```

More: https://generativeicons.com/icons/group-rows/ · https://generativeicons.com/api/icons/group-rows
