# Heros

### Hero center

<figure><img src="/files/OjgRfakaWzzb3Lq8EEv9" alt=""><figcaption><p>Hero section central</p></figcaption></figure>

To add a beautifully designed Hero section to your landing page, copy and paste this line of code where you need this section to appear in your html.erb page:

<pre><code><strong>&#x3C;%= render "components/hero" %>
</strong></code></pre>

### Hero with background

<figure><img src="/files/7M3ae1wZDsd7wTShyWsl" alt=""><figcaption></figcaption></figure>

To add the Hero section with a background frame, copy and paste this code:

```
<%= render "components/hero_bg" %>
```

### Hero image split

<figure><img src="/files/XAwz95jXLD6CPESub4cp" alt=""><figcaption><p>Hero with image</p></figcaption></figure>

To add the Hero section with a background frame and a split view with image, copy and paste this code:

```
<%= render "components/hero_split" %>
```

***

### See more Hero designs:

* [HyperUi Hero](#user-content-fn-1)[^1]
* [DaisyUI Hero](https://daisyui.com/components/hero/)

[^1]: <https://www.hyperui.dev/components/marketing/banners>


---

# 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.lightningrails.com/ui-components/heros.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.
