---
title: Clock With Photo
description: A widget to display clock with photo
labels: ["requires interaction", "hover"]
author: AashishKatila
---

<ComponentPreview name="widget-clock-with-photo--docs" />

## Installation

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

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

```bash
mkdir -p components/animata/widget && touch components/animata/widget/clock-with-photo.tsx
```

<Step>Paste the code</Step>

Open the newly created file and paste the following code:

```jsx file=<rootDir>/animata/widget/clock-with-photo.tsx

```

</Steps>

## Credits

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

Photo by <a href="https://unsplash.com/@wflwong?utm_content=creditCopyText&utm_medium=referral&utm_source=unsplash">Warren</a> on <a href="https://unsplash.com/photos/man-jumping-above-gray-and-yellow-concrete-road-at-daytime-tHiGKAJxaA8?utm_content=creditCopyText&utm_medium=referral&utm_source=unsplash">Unsplash</a>
Photo by <a href="https://unsplash.com/@whongru?utm_content=creditCopyText&utm_medium=referral&utm_source=unsplash">Hongru Wang</a> on <a href="https://unsplash.com/photos/green-grass-field-under-blue-sky-during-daytime-6F2k0tqNuG4?utm_content=creditCopyText&utm_medium=referral&utm_source=unsplash">Unsplash</a>
