---
title: "Add / remove animated icon"
description: "Add / remove animated icon (Everyday controls). The vertical bar folds down onto the horizontal bar: plus becomes minus and holds; reverse stands it back up."
canonical: https://generativeicons.com/icons/add-remove/
---

# Add / remove animated icon

The vertical bar folds down onto the horizontal bar: plus becomes minus and holds; reverse stands it back up.

- Id: `add-remove`
- Category: Everyday controls
- Search terms: plus, minus, plus minus, plus-minus, increase decrease, increment, decrement, stepper, quantity, more less, include exclude
- Two states: add to remove, 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/add-remove.lottie (dotLottie, 5952 bytes, sha256 41178a8ae58bfba39ebe0cb6a2a6c873ae766f26447cba34632d7e66d8e10a12)
- License: MIT

## Install

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

## React

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

export function AddRemoveIcon() {
  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/add-remove.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/add-remove/ · https://generativeicons.com/api/icons/add-remove
