---
title: "Rectangle tool animated icon"
description: "Rectangle tool animated icon (Drawing & design tools). Light: a rectangle is dragged out from its origin handle to the far corner in 0.56 s while the drag handle rides the corner. Strong: the handle is grabbed, the corner shoots out in 0.2 s, overshoots by 6% and settles. The rectangle is retained; preview reset rearms."
canonical: https://generativeicons.lottiefiles.com/icons/rectangle-tool/
---

# Rectangle tool animated icon

Light: a rectangle is dragged out from its origin handle to the far corner in 0.56 s while the drag handle rides the corner. Strong: the handle is grabbed, the corner shoots out in 0.2 s, overshoots by 6% and settles. The rectangle is retained; preview reset rearms.

- Id: `rectangle-tool`
- Category: Drawing & design tools
- Search terms: square tool, draw rectangle, rect, rect tool, draw box, shape tool, rectangular shape, draw square, square shape
- Two states: prepared to result, 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.lottiefiles.com/assets/rectangle-tool.lottie (dotLottie, 15531 bytes, sha256 d20e147bae302b89fc7dfaf9e7f7f318f7dc7a27b54989ccbfca56bc47f6e1f4)
- License: MIT

## Install

```sh
npm install @lottiefiles/generative-icons-runtime
npx generative-icons init
npx generative-icons add rectangle-tool
```

## React

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

export function RectangleToolIcon() {
  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/rectangle-tool.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.lottiefiles.com/icons/rectangle-tool/ · https://generativeicons.lottiefiles.com/api/icons/rectangle-tool
