---
title: Cycling
description: A widget that shows the distance covered and heart-rate of cyclist
---

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

## Installation

<Steps>
<Step>Run the following command</Step>

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

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

<Step>Paste the code</Step>

Open the newly created file and paste the following code:

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

```

</Steps>
