---
title: "Component instance animated icon"
description: "Component instance animated icon (Vector editing & design). An edit to the main component reaches its instance. Light: the main component is pressed in and pops back bigger; the connector pulls back into it and shoots out to the instance, and the instance replays the same pop as the change arrives. Strong: the main component is pressed deeper and pops with a twist and a rebound, the change travels down the connector, and the instance replays every beat of it. The connector's corner never moves."
canonical: https://generativeicons.lottiefiles.com/icons/component-instance/
---

# Component instance animated icon

An edit to the main component reaches its instance. Light: the main component is pressed in and pops back bigger; the connector pulls back into it and shoots out to the instance, and the instance replays the same pop as the change arrives. Strong: the main component is pressed deeper and pops with a twist and a rebound, the change travels down the connector, and the instance replays every beat of it. The connector's corner never moves.

- Id: `component-instance`
- Category: Vector editing & design
- Search terms: main component, master component, linked copy, reusable, design system, library component, propagate changes, push changes, overrides, smart object
- One action, back to rest
- 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/component-instance.lottie (dotLottie, 6001 bytes, sha256 f730be17b70191bcff223383991166448cf3c1fcf7cc1f8edab041bcfc9eced1)
- License: MIT

## Install

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

## React

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

export function ComponentInstanceIcon() {
  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/component-instance.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/component-instance/ · https://generativeicons.lottiefiles.com/api/icons/component-instance
