> For the complete documentation index, see [llms.txt](https://partners.tray.com.br/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://partners.tray.com.br/themes/construindo-seu-template/referencias/data-attributes/search-suggestion.md).

# Search (Suggestion)

{% hint style="info" %}
**Para saber mais sobre sugestões de busca acesse:** [**Sugestões de busca.**](https://basedeconhecimento.tray.com.br/hc/pt-br/articles/6734650856987-Sugest%C3%B5es-de-Busca)
{% endhint %}

Como o próprio nome diz, retorna algumas sugestões de itens ao realizar uma busca.

| Atributos     | Características                           |
| ------------- | ----------------------------------------- |
| `data-search` | Tipo da busca (ex: suggestion)            |
| `data-input`  | Caixa de texto principal (ex: suggestion) |

```html
<form data-search="suggestion">
  <input data-input="suggestion" type="text">
</form>
```

Ao realizar a busca, exibe alguns títulos e alguns produtos (foto e título) relacionado ao item pesquisado, conforme imagem abaixo:

**Exibição da sugestão de busca**

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