# Search page

> The values of `search` inside `smootify-search-page`.

Status: Ready (Smootify 2.0)  
URL: https://www.smootify.io/docs/reference/attributes/search-page  
Updated: 2026-10-13

## At a glance

| Search | `search="count"` (on text) | `search="query"` (on text) | `search="empty-state"` (on a Div block) |
|---|---|---|---|
| `?q=linen`, 12 results | 12, the number of results | linen, the searched words | hidden |
| `?q=xyzzy`, no results | 0 | xyzzy | shown |
| no words in the address or the field | | | shown: the page searches nothing |

More in [the guide](https://www.smootify.io/docs/build/search-page).

## Where it can go

- **Inside** [`smootify-search-page`](https://www.smootify.io/docs/reference/elements/smootify-search-page).

## Values

| Attribute and value | What it is | Notes |
|---|---|---|
| `search="query"` | Query | on text |
| `search="count"` | Result count | on text |
| `search="empty-state"` | Empty state | A search without results; not before a search; on container |
| `search="no-query"` | Before a search | Shown while there is no query: what are you looking for, suggestions; on container |
| `search="with-query"` | With a search | Shown while there is a query: the results row; on container |
