---
title: "Tab switcher animated icon"
description: "Tab switcher animated icon (Everyday controls). Inside the tab strip the active-tab bar pulls back, then drives across to the second slot; the slot markers swap so the neighbour becomes active."
canonical: https://generativeicons.com/icons/tab-switcher/
---

# Tab switcher animated icon

Inside the tab strip the active-tab bar pulls back, then drives across to the second slot; the slot markers swap so the neighbour becomes active.

- Id: `tab-switcher`
- Category: Everyday controls
- Search terms: tabs, switch tabs, change tab, browser tabs, tab bar, tab strip, active tab, next tab, segmented control, tab navigation, tab group, ctrl tab
- 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.com/assets/tab-switcher.lottie (dotLottie, 7838 bytes, sha256 9dd5be89f2b5d8e3723ad11173168acd8c6ef42e4729b12a3fcd1b898515fb76)
- License: MIT

## Install

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

## React

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

export function TabSwitcherIcon() {
  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/tab-switcher.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/tab-switcher/ · https://generativeicons.com/api/icons/tab-switcher
