---
title: Flight widget
description: A widget that shows flight detail
author: AashishKatila
---

<ComponentPreview name="widget-flight-widget--docs" />

## Installation

<Steps>
<Step>Install dependencies</Step>

```bash
npm install lucide-react
```

<Step>Run the following command</Step>

It will create a new file called `flight-widget.tsx` inside the `components/animata/widget` directory.

```bash
mkdir -p components/animata/widget && touch components/animata/widget/flight-widget.tsx
```

<Step>Paste the code</Step>

Open the newly created file and paste the following code:

```jsx file=<rootDir>/animata/widget/flight-widget.tsx

```

</Steps>

## Credits

Built by [Aashish Katila](https://github.com/AashishKatila)
[yevhenyurchuk.com](https://yevhenyurchuk.com/)
