---
title: Sleep Tracker
description: An elegant sleep tracker for your use
author: AdashBaral
---

<ComponentPreview name="widget-sleep-tracker--docs" />

## Installation

<Steps>

<Step>Install dependencies</Step>

This uses [BarChart](/docs/graphs/bar-chart) for the bar graph. Install it by following the instructions [here](/docs/graphs/bar-chart#installation).

<Step>Run the following command</Step>

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

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

<Step>Paste the code</Step>

Open the newly created file and paste the following code:

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

```

</Steps>

## Credits

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