# Examples

You can just copy JSON files from [Examples](https://github.com/Sly777/hayde/tree/main/examples) folder and paste any of them to the root folder of your project. Then you can run Hayde with the following command:

```bash
npx hayde
```

For more information on the available options, please check the [options](/docs/options.md) page.

Click here to see the [GitHub](https://github.com/Sly777/hayde/tree/main/examples) page.

## Videos

### How to create a calculator component

{% embed url="<https://github-production-user-asset-6210df.s3.amazonaws.com/694940/285187015-d6d2a112-ade8-4be1-a59a-9e669195919c.mp4>" %}
Calculator
{% endembed %}

### How to create a login form component

{% embed url="<https://github-production-user-asset-6210df.s3.amazonaws.com/694940/285187100-11390092-08b9-4a02-a0d5-0384be26e22c.mp4>" %}
Login Form
{% endembed %}

### How to create a weather widget component

{% embed url="<https://github-production-user-asset-6210df.s3.amazonaws.com/694940/285187114-0de2f34a-b28c-41a2-9829-f9c05bfc3532.mp4>" %}
Weather Widget
{% endembed %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.haydejs.com/examples.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
