# Search bar

### What It Does

The **Search bar** section lets you add a search bar to your store.<br>

<figure><img src="/files/JUzgSqzR4Yv5nDY3dh7O" alt=""><figcaption></figcaption></figure>

{% hint style="success" %}

#### How to Add It

1. In the Shopify theme editor, click **Add section**.
2. Search for **"Search bar"**.
3. Click the section to add it to your page.
4. Adjust the settings described below.
   {% endhint %}

***

### Settings

#### **Layout**

Controls the Layout. Choose from: Full width, Fit to width.

#### **Heading**

The title text displayed in the title element.

#### **Body text**

Rich text content with formatting options.

**Inputs**

#### **Border width**

Sets the thickness of the border.

#### **Show only bottom border**

When enabled, only the bottom border is displayed on the search bar.

#### **Border radius**

Rounds the corners of this element.

#### **Padding**

Adjusts the spacing around the content.

#### **Input color scheme**

Controls the Input color scheme. Choose from: Primary, Secondary.

**Appearance**

#### **Heading font size**

Controls the heading text size in the title element. Choose from: Heading 6, Heading 5, Heading 4, Heading 3, Heading 2, Heading 1.

#### **Body text font size**

Controls the text size in the title element.

#### **Horizontal alignment**

Controls the text alignment.

#### **Color scheme**

Applies a predefined color scheme to this element.

{% hint style="info" %}
Color schemes are sets of coordinated colors you define under **Theme settings > Colors**. Choosing a scheme applies its background, text, and accent colors.
{% endhint %}

**Spacing**

#### **Maximum padding top**

Adjusts the space above the content.

#### **Maximum padding bottom**

Adjusts the space below the content.

***

### Supported Blocks

#### Search input

See the child document for full settings: [Search input](/agnes/sections/search-bar/search-input.md)

#### Filter

See the child document for full settings: [Filter](/agnes/sections/search-bar/filter.md)

**Block Limit:** You can add up to **2** of this block type.

#### Search button

See the child document for full settings: [Search button](/agnes/sections/search-bar/button.md)


---

# 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://moodboard-creations.gitbook.io/agnes/sections/search-bar.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.
