---
title: Direction Card
description: A direction card which adapts itself on directions and distance
author: AdashBaral
---

<ComponentPreview name="widget-direction-card--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 `direction-card.tsx` inside the `components/animata/widget` directory.

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

<Step>Paste the code</Step>

Open the newly created file and paste the following code:

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

```

</Steps>

## Credits

Built by [Aadarsh Baral](https://github.com/aadarshbaral)
