---
title: "File preview animated icon"
description: "File preview animated icon (Files & folders). Hidden → previewed: the upper lid lifts off the lower lid and the pupil appears. Strong: the lid snaps open past its mark with a hit while the pupil dilates and settles. Reverse closes the eye."
canonical: https://generativeicons.com/icons/file-preview/
---

# File preview animated icon

Hidden → previewed: the upper lid lifts off the lower lid and the pupil appears. Strong: the lid snaps open past its mark with a hit while the pupil dilates and settles. Reverse closes the eye.

- Id: `file-preview`
- Category: Files & folders
- Search terms: view file, view document, preview document, quick look, quicklook, peek, inspect file, read document, show document, preview pane, glance
- Two states: hidden to previewed, 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-preview.lottie (dotLottie, 9450 bytes, sha256 aba1e48724ba84eefb3f3fe78c34e028faca036772bb8d299b48e2f0c9f050ff)
- License: MIT

## Install

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

## React

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

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