---
title: "File star animated icon"
description: "File star animated icon (Files & folders). Unstarred → starred: the star on the sheet fills in with a small swell. Strong: a press, a pop past size with a hit as the fill lands, then a settle. Reverse empties the star."
canonical: https://generativeicons.com/icons/file-star/
---

# File star animated icon

Unstarred → starred: the star on the sheet fills in with a small swell. Strong: a press, a pop past size with a hit as the fill lands, then a settle. Reverse empties the star.

- Id: `file-star`
- Category: Files & folders
- Search terms: starred, starred file, favorite file, favourite file, favorite document, favourite document, important document, mark important, mark as favorite, mark as favourite, priority file
- Two states: unstarred to starred, 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/file-star.lottie (dotLottie, 168016 bytes, sha256 1a91e8297778aacb031f0c671927eeea1139f141243cbcd0380568a4f86c453d)
- License: MIT

## Install

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

## React

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

export function FileStarIcon() {
  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/file-star.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/file-star/ · https://generativeicons.com/api/icons/file-star
