---
title: "Indent / outdent animated icon"
description: "Indent / outdent animated icon (Text & document editing). The guide arrow turns back and steps aside, then the indented lines slide out to the margin; reverse restores the indent."
canonical: https://generativeicons.com/icons/indent-outdent/
---

# Indent / outdent animated icon

The guide arrow turns back and steps aside, then the indented lines slide out to the margin; reverse restores the indent.

- Id: `indent-outdent`
- Category: Text & document editing
- Search terms: increase indent, decrease indent, indentation, unindent, dedent, nest, nesting, shift tab, margin, hanging indent
- Two states: indented to outdented, 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/indent-outdent.lottie (dotLottie, 9341 bytes, sha256 cbaaee573ef5ee45b41271c6eafbd8f09c05bafb8329d6a2c7d4a5dc0430bb52)
- License: MIT

## Install

```sh
npm install @lottiefiles/generative-icons-runtime
npx generative-icons init
npx generative-icons add indent-outdent
```

## React

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

export function IndentOutdentIcon() {
  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/indent-outdent.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/indent-outdent/ · https://generativeicons.com/api/icons/indent-outdent
