FormsFilterBar
Searchastronomic.dev# FilterBar
For a row of filters over a list of homes or places, that scrolls sideways on a phone.
Interactive: inline script.
## Usage
```astro
import FilterBar from "@astronomic-dev/ui/components/FilterBar.astro";
```
## Examples
### Homes for sale and for rent
The bar over a list, with ResultsHead under it. Pick Rent, a price, beds and two home types, then reload or copy the address: the same filters come back. The box under it stands in for a search and prints what each filters:change hands over.
```astro
---
import FilterBar from "@astronomic-dev/ui/components/FilterBar.astro";
import ResultsHead from "@astronomic-dev/ui/components/ResultsHead.astro";
import { defaults, fields, modes, sorts } from "../_data/vega.ts";
---
<div class="grid grid-cols-[minmax(0,1fr)] gap-blocks">
<FilterBar id="homes-filters" label="Filter homes" fields={fields} modes={modes} modesLabel="Buy or rent" sorts={sorts} defaults={defaults} textLabel="Where" textPlaceholder="Street or neighborhood" />
<ResultsHead heading="Homes in Denver" count={8} countText={{ one: "home", other: "homes" }} sorts={sorts} filtersId="homes-filters" />
<div class="grid gap-2 rounded-card border-ui border-solid border-border p-4 text-small">
<p class="m-0 font-medium text-fg">What a search would get</p>
<p class="m-0 text-muted">Address: <code data-example-url class="[overflow-wrap:anywhere]"></code></p>
<pre data-example-state class="m-0 overflow-x-auto text-small whitespace-pre-wrap text-muted [overflow-wrap:anywhere]"></pre>
</div>
</div>
<script>
// Not a kit part: a stand-in for a search, to show what the filters hand over. Each filters:change carries the
// state and how it came (load, a reader's change, Back or Forward); a real search runs here.
const form = document.getElementById("homes-filters");
const url = document.querySelector("[data-example-url]");
const state = document.querySelector("[data-example-state]");
form?.addEventListener("filters:change", (event) => {
const { detail } = event as CustomEvent;
if (url) url.textContent = `${location.pathname}${location.search}`;
if (state) state.textContent = JSON.stringify({ source: detail.source, kind: detail.kind, ...detail.state });
});
</script>
```
### Dropdowns
dropdown draws each filter as a dropdown in its own cell: Price and Rent as Min and Max radio lists, the home type as checkboxes, Beds and Baths as a Select with picker. A field that is set has an accent label and a thin underline. ResultsHead's sortPicker draws the sort the same way. The names, the address bar and filters:change are the same as the main example's. Pick Rent: the steps and the words change.
```astro
---
import FilterBar from "@astronomic-dev/ui/components/FilterBar.astro";
import ResultsHead from "@astronomic-dev/ui/components/ResultsHead.astro";
import { defaults, fields, modes, sorts } from "../_data/vega.ts";
---
<div class="grid grid-cols-[minmax(0,1fr)] gap-blocks">
<FilterBar id="homes-filters" dropdown label="Filter homes" fields={fields} modes={modes} modesLabel="Buy or rent" sorts={sorts} defaults={defaults} textLabel="Where" textPlaceholder="Street or neighborhood" />
<ResultsHead heading="Homes in Denver" count={8} countText={{ one: "home", other: "homes" }} sorts={sorts} filtersId="homes-filters" sortPicker />
</div>
```
### Dropdowns, one choice
A field without multiple is a Select with picker: the browser's own select, drawn in the kit's look where it can. A toggle stays a checkbox.
```astro
---
import FilterBar from "@astronomic-dev/ui/components/FilterBar.astro";
import type { ListingField } from "@astronomic-dev/ui/lib/listing.ts";
import { defaults, fields, modes, sorts } from "../_data/vega.ts";
const oneType: ListingField[] = fields.map((field) => (field.key === "type" ? { ...field, multiple: false } : field));
---
<FilterBar dropdown label="Filter homes" fields={[...oneType, { key: "garage", label: "Garage", kind: "toggle" }]} modes={modes} modesLabel="Buy or rent" sorts={sorts} defaults={defaults} />
```
### Rent first
defaults.mode is rent: the price is the rent per month, with its own steps, and the legend says Rent.
```astro
---
import FilterBar from "@astronomic-dev/ui/components/FilterBar.astro";
import { fields, modes, sorts } from "../_data/vega.ts";
---
<FilterBar label="Filter rentals" fields={fields} modes={modes} modesLabel="Buy or rent" sorts={sorts} defaults={{ mode: "rent", sort: "newest" }} textLabel="Where" textPlaceholder="Street or neighborhood" />
```
### Two filters
Only beds and the home type have a kind; the other fields show on the card only.
```astro
---
import FilterBar from "@astronomic-dev/ui/components/FilterBar.astro";
import { fields, modes, sorts } from "../_data/vega.ts";
// Only beds and the home type filter here: the other fields keep no kind, so they show on the card only.
const few = fields.filter((field) => field.key === "beds" || field.key === "type" || !field.kind);
---
<FilterBar label="Filter homes" fields={few} modes={modes} modesLabel="Buy or rent" sorts={sorts} defaults={{ mode: "buy", sort: "newest" }} />
```
### Every kind of field
The home type as one select (no multiple) and a garage toggle. Every label sits on one line and every control on the line under it, the toggle too.
```astro
---
import FilterBar from "@astronomic-dev/ui/components/FilterBar.astro";
import type { ListingField } from "@astronomic-dev/ui/lib/listing.ts";
import { fields, modes, sorts } from "../_data/vega.ts";
// The home type as one select (no multiple), and a garage toggle: every kind of field on one bar.
const kinds: ListingField[] = [
...fields.map((field) => (field.key === "type" ? { ...field, multiple: false } : field)),
{ key: "garage", label: "Garage", kind: "toggle", card: false },
];
---
<FilterBar label="Filter homes" fields={kinds} modes={modes} modesLabel="Buy or rent" sorts={sorts} defaults={{ mode: "buy", sort: "newest" }} textLabel="Where" textPlaceholder="Street or neighborhood" />
```
### Many filters
Three ranges, four selects and a toggle. The cells keep their width: when they do not all fit, the bar scrolls sideways inside its own box, and the page never does.
```astro
---
import FilterBar from "@astronomic-dev/ui/components/FilterBar.astro";
import type { ListingField } from "@astronomic-dev/ui/lib/listing.ts";
import { fields, modes, sorts } from "../_data/vega.ts";
// A long list of filters: three ranges, four selects and a toggle, more than one row of cells can hold on most screens.
const price = fields.find((field) => field.key === "price")!;
const many: ListingField[] = [
price,
{ key: "sqft", label: "Sq ft", kind: "range", format: "integer", steps: [1000, 1500, 2000, 3000, 4000], card: false },
{ key: "year", label: "Built", kind: "range", format: "year", steps: [1950, 1980, 2000, 2010, 2020], card: false },
{ key: "beds", label: "Beds", kind: "range", bound: "min", format: "integer", steps: [1, 2, 3, 4, 5], card: false },
{ key: "baths", label: "Baths", kind: "range", bound: "min", format: "decimal", steps: [1, 1.5, 2, 3, 4], card: false },
{
key: "type",
label: "Home type",
kind: "choice",
card: false,
options: [
{ value: "house", label: "House" },
{ value: "condo", label: "Condo" },
{ value: "duplex", label: "Duplex or multifamily building" },
],
},
{
key: "hood",
label: "Neighborhood",
kind: "choice",
card: false,
options: [
{ value: "wash-park", label: "Washington Park" },
{ value: "highlands", label: "Highlands" },
{ value: "lodo", label: "Lower Downtown" },
],
},
{ key: "garage", label: "Garage", kind: "toggle", card: false },
];
---
<FilterBar label="Filter homes" fields={many} modes={modes} modesLabel="Buy or rent" sorts={sorts} defaults={{ mode: "buy", sort: "newest" }} textLabel="Where" textPlaceholder="Street or neighborhood" />
```
### With an action
The actions slot sits at the bar's right end, after Clear: here a Save search button.
```astro
---
import Button from "@astronomic-dev/ui/components/Button.astro";
import FilterBar from "@astronomic-dev/ui/components/FilterBar.astro";
import { fields, modes, sorts } from "../_data/vega.ts";
---
<FilterBar label="Filter homes" fields={fields} modes={modes} modesLabel="Buy or rent" sorts={sorts} defaults={{ mode: "buy", sort: "newest" }} textLabel="Where" textPlaceholder="Street or neighborhood">
<Button slot="actions" type="button">Save search</Button>
</FilterBar>
```
### No switch
A list with one mode, such as homes for sale only: no modes, no switch.
```astro
---
import FilterBar from "@astronomic-dev/ui/components/FilterBar.astro";
import { fields, sorts } from "../_data/vega.ts";
// A list with one mode, such as homes for sale only: no switch. The price field still has labels per mode, so pass
// one field list for sales.
const sale = fields.map((field) => (field.key === "price" ? { ...field, labels: undefined, steps: [500000, 750000, 1000000, 1500000, 2000000], period: "once" as const, resetOnMode: false } : field));
---
<FilterBar label="Filter homes for sale" fields={sale} sorts={sorts} defaults={{ sort: "newest" }} textLabel="Where" textPlaceholder="Street or neighborhood" />
```
## Props
### FilterBar
| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| Slot | Description |
| --- | --- |
| `actions` | At the bar's right end, after Clear: a theme's "Save search" button. Optional. |
Takes every Filters prop (below) except barClass, rowClass and fieldClass, which it sets: from a 72rem box, one rounded row whose cells share its whole width, each at a width no value changes: a native select fits its widest option, and with dropdown a long value stops at an ellipsis, which scrolls sideways when they cannot fit; below that, a row that scrolls sideways when it must, option chips on their own line.
### Filters
| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `label` | `string` | None | The search's accessible name, for role="search", such as "Filter homes". |
| `fields` | `ListingField[]` | None | Your fields list (lib/listing.ts). Each field with a kind gets a filter: range (Min and Max selects, or one "at least" select with bound "min"), choice (one select, or option chips with multiple) or toggle (a checkbox). |
| `modes` | `{ value: string; label: string }[]` | None | The modes of the two-part switch, such as Buy and Rent. Without them, no switch. |
| `modesLabel` | `string` | None | The switch's name, read before its options ("Buy or rent"). Required with modes: the kit has no default, since the modes are yours. |
| `sorts` | `{ value: string; label: string }[]` | None | The sorts ResultsHead offers. The filters keep the picked one in the address bar. |
| `defaults` | `{ mode?: string; sort: string }` | None | The mode and sort with nothing chosen. Neither is written in the address bar. |
| `textLabel` | `string` | None | The text box's visible label ("Where"). Without it, no text box. |
| `textPlaceholder` | `string` | None | The text box's placeholder, such as "Street or neighborhood". |
| `pageHref` | `(n: number) => string` | None | The path of each server page, as your list's pager builds them ("/search/page/2/"), so a page is a real file. With pages. |
| `pages` | `number` | None | How many server pages there are. Unset: one page. |
| `clearText` | `string` | `"Clear"` | The button that removes the text and every filter (shown only when something is set). |
| `anyText` | `string` | `FILTERS_TEXTS.anyText` | A select's empty first option: a choice field's and a minimum-only range's ("Any"). |
| `minText` | `string` | `FILTERS_TEXTS.minText` | A range's empty Min option ("No min"). |
| `maxText` | `string` | `FILTERS_TEXTS.maxText` | A range's empty Max option ("No max"). |
| `minLabel` | `string` | None | A range's Min select name for screen readers, after its legend. Default "Min". |
| `maxLabel` | `string` | None | A range's Max select name for screen readers, after its legend. Default "Max". |
| `dropdown` | `boolean` | `false` | Draws the fields as dropdowns: one choice and a range with bound "min" as a Select with picker, several choices as checkboxes in a Popover, a range as Min and Max radio lists in one, all in the row. ResultsHead's sort has its own prop, sortPicker. The names, the values, the address bar and filters:change stay the same. |
| `rangeText` | `string` | None | With dropdown: a range's words for both ends. Default "{min} to {max}". |
| `fromText` | `string` | None | With dropdown: a range's words for its Min alone. Default "{min}+". |
| `upToText` | `string` | None | With dropdown: a range's words for a maximum only. Default "Up to {max}". |
| `countText` | `string` | None | With dropdown: the words for two or more choices. A field's own countText wins. Default "{n} selected". |
| `removeLabel` | `string` | `FILTERS_TEXTS.removeLabel` | An active-filter chip's name, with {text} filled in ("Remove: {text}"). |
| `barClass` | `string` | None | For recipes. Classes for the bar: the row, the option-chip fields, Clear and the actions. |
| `rowClass` | `string` | None | For recipes. Classes for the row: the switch, the text box and the one-line fields. |
| `fieldClass` | `string` | None | For recipes. Classes for each field (the text box, each range and choice). An option-chip field has data-filter="options". |
| `chipsClass` | `string` | None | For recipes. Classes for the list of active-filter chips. |
| `class` | `string` | None | More classes for the <form>, merged with cn(). The form is the filters container (@container/filters). |
| Slot | Description |
| --- | --- |
| `actions` | After Clear: your own buttons, such as "Save search". Optional. |
Any other attribute goes on the <form>; id names it (ResultsHead's filtersId), else a page-unique id. It fires filters:change on the form, detail { state, kind, source, url }, once per change; a pager sends filters:page with { page }. filtersState(form) in lib/filters.ts gives the state now.
## Accessibility
| Key | Action |
| --- | --- |
| Tab and Shift+Tab | Move through the switch, the text box, each filter, Clear and the active-filter chips, in the order drawn |
| Enter or Space | With dropdown, on a trigger: opens and closes its panel |
| Up and Down arrows | With dropdown, in a radio list: move and pick, each move a filter change |
| Escape | With dropdown: closes the panel and returns focus to the trigger |
| Left and Right arrows | Move between the switch's options (Buy, Rent), as in any radio group |
| Space | Checks or unchecks an option chip |
| Enter | In the text box, applies the text at once; on an active-filter chip, removes that filter |
- The form is a search landmark (role="search") named by label. Every control is native: radios, a search box, selects and checkboxes, each with a label.
- The switch is a fieldset of radios with a visually hidden legend (modesLabel), so a screen reader says "Buy or rent" before the options. It takes one Tab stop.
- A range is a fieldset: its legend is the field's label for the mode ("Price", or "Rent"), and each select has its own name ("Min", "Max").
- Option chips are native checkboxes, each its own Tab stop ("House, checkbox, checked"); checked shows a check icon, not only a color. No aria-pressed buttons.
- Each active-filter chip is a button named "Remove: 3+ beds". After one is removed, focus moves to the next chip, else to the first filter.
- Every edit writes the address bar, so a search can be shared, reloaded and walked with Back and Forward. A mode change is its own history step; filter edits replace the current one.
- With dropdown, each trigger is a button named by its label and its words ("Price Any price"), and opens a named dialog. Its options are native radios or checkboxes ("Min, group; $750K, radio"). Enter or Space picks; radios pick as the arrows move, as native radios do; Escape closes and goes back to the trigger. After Clear or the last chip is removed, focus goes to the first filter, which for a dropdown is its trigger.
- With no JavaScript the filters are hidden (nothing would listen), so the page's list shows every listing.
- Every control is at least 44px on a touch screen. The switch's thumb slides only when motion is allowed (not under reduced motion or the theme's calm setting).
FilterBar
FreeFor a row of filters over a list of homes or places, that scrolls sideways on a phone.
- File
- FilterBar.astro
- Group
- Forms
- Kind
- Interactive: inline script
- Examples
- 9
Examples
Drag the orange handle to set the width. Frames get real breakpoints.
- Static
- Interactive
- Framed
Homes for sale and for rent
The bar over a list, with ResultsHead under it. Pick Rent, a price, beds and two home types, then reload or copy the address: the same filters come back. The box under it stands in for a search and prints what each filters:change hands over.
This preview did not load.
examples/filterbar/main.astro
---
import FilterBar from "@astronomic-dev/ui/components/FilterBar.astro";
import ResultsHead from "@astronomic-dev/ui/components/ResultsHead.astro";
import { defaults, fields, modes, sorts } from "../_data/vega.ts";
---
<div class="grid grid-cols-[minmax(0,1fr)] gap-blocks">
<FilterBar id="homes-filters" label="Filter homes" fields={fields} modes={modes} modesLabel="Buy or rent" sorts={sorts} defaults={defaults} textLabel="Where" textPlaceholder="Street or neighborhood" />
<ResultsHead heading="Homes in Denver" count={8} countText={{ one: "home", other: "homes" }} sorts={sorts} filtersId="homes-filters" />
<div class="grid gap-2 rounded-card border-ui border-solid border-border p-4 text-small">
<p class="m-0 font-medium text-fg">What a search would get</p>
<p class="m-0 text-muted">Address: <code data-example-url class="[overflow-wrap:anywhere]"></code></p>
<pre data-example-state class="m-0 overflow-x-auto text-small whitespace-pre-wrap text-muted [overflow-wrap:anywhere]"></pre>
</div>
</div>
<script>
// Not a kit part: a stand-in for a search, to show what the filters hand over. Each filters:change carries the
// state and how it came (load, a reader's change, Back or Forward); a real search runs here.
const form = document.getElementById("homes-filters");
const url = document.querySelector("[data-example-url]");
const state = document.querySelector("[data-example-state]");
form?.addEventListener("filters:change", (event) => {
const { detail } = event as CustomEvent;
if (url) url.textContent = `${location.pathname}${location.search}`;
if (state) state.textContent = JSON.stringify({ source: detail.source, kind: detail.kind, ...detail.state });
});
</script>Dropdowns
dropdown draws each filter as a dropdown in its own cell: Price and Rent as Min and Max radio lists, the home type as checkboxes, Beds and Baths as a Select with picker. A field that is set has an accent label and a thin underline. ResultsHead's sortPicker draws the sort the same way. The names, the address bar and filters:change are the same as the main example's. Pick Rent: the steps and the words change.
This preview did not load.
examples/filterbar/dropdown.astro
---
import FilterBar from "@astronomic-dev/ui/components/FilterBar.astro";
import ResultsHead from "@astronomic-dev/ui/components/ResultsHead.astro";
import { defaults, fields, modes, sorts } from "../_data/vega.ts";
---
<div class="grid grid-cols-[minmax(0,1fr)] gap-blocks">
<FilterBar id="homes-filters" dropdown label="Filter homes" fields={fields} modes={modes} modesLabel="Buy or rent" sorts={sorts} defaults={defaults} textLabel="Where" textPlaceholder="Street or neighborhood" />
<ResultsHead heading="Homes in Denver" count={8} countText={{ one: "home", other: "homes" }} sorts={sorts} filtersId="homes-filters" sortPicker />
</div>Dropdowns, one choice
A field without multiple is a Select with picker: the browser's own select, drawn in the kit's look where it can. A toggle stays a checkbox.
This preview did not load.
examples/filterbar/dropdown-choice.astro
---
import FilterBar from "@astronomic-dev/ui/components/FilterBar.astro";
import type { ListingField } from "@astronomic-dev/ui/lib/listing.ts";
import { defaults, fields, modes, sorts } from "../_data/vega.ts";
const oneType: ListingField[] = fields.map((field) => (field.key === "type" ? { ...field, multiple: false } : field));
---
<FilterBar dropdown label="Filter homes" fields={[...oneType, { key: "garage", label: "Garage", kind: "toggle" }]} modes={modes} modesLabel="Buy or rent" sorts={sorts} defaults={defaults} />Rent first
defaults.mode is rent: the price is the rent per month, with its own steps, and the legend says Rent.
This preview did not load.
examples/filterbar/rent.astro
---
import FilterBar from "@astronomic-dev/ui/components/FilterBar.astro";
import { fields, modes, sorts } from "../_data/vega.ts";
---
<FilterBar label="Filter rentals" fields={fields} modes={modes} modesLabel="Buy or rent" sorts={sorts} defaults={{ mode: "rent", sort: "newest" }} textLabel="Where" textPlaceholder="Street or neighborhood" />Two filters
Only beds and the home type have a kind; the other fields show on the card only.
This preview did not load.
examples/filterbar/few-fields.astro
---
import FilterBar from "@astronomic-dev/ui/components/FilterBar.astro";
import { fields, modes, sorts } from "../_data/vega.ts";
// Only beds and the home type filter here: the other fields keep no kind, so they show on the card only.
const few = fields.filter((field) => field.key === "beds" || field.key === "type" || !field.kind);
---
<FilterBar label="Filter homes" fields={few} modes={modes} modesLabel="Buy or rent" sorts={sorts} defaults={{ mode: "buy", sort: "newest" }} />Every kind of field
The home type as one select (no multiple) and a garage toggle. Every label sits on one line and every control on the line under it, the toggle too.
This preview did not load.
examples/filterbar/every-kind.astro
---
import FilterBar from "@astronomic-dev/ui/components/FilterBar.astro";
import type { ListingField } from "@astronomic-dev/ui/lib/listing.ts";
import { fields, modes, sorts } from "../_data/vega.ts";
// The home type as one select (no multiple), and a garage toggle: every kind of field on one bar.
const kinds: ListingField[] = [
...fields.map((field) => (field.key === "type" ? { ...field, multiple: false } : field)),
{ key: "garage", label: "Garage", kind: "toggle", card: false },
];
---
<FilterBar label="Filter homes" fields={kinds} modes={modes} modesLabel="Buy or rent" sorts={sorts} defaults={{ mode: "buy", sort: "newest" }} textLabel="Where" textPlaceholder="Street or neighborhood" />Many filters
Three ranges, four selects and a toggle. The cells keep their width: when they do not all fit, the bar scrolls sideways inside its own box, and the page never does.
This preview did not load.
examples/filterbar/many-fields.astro
---
import FilterBar from "@astronomic-dev/ui/components/FilterBar.astro";
import type { ListingField } from "@astronomic-dev/ui/lib/listing.ts";
import { fields, modes, sorts } from "../_data/vega.ts";
// A long list of filters: three ranges, four selects and a toggle, more than one row of cells can hold on most screens.
const price = fields.find((field) => field.key === "price")!;
const many: ListingField[] = [
price,
{ key: "sqft", label: "Sq ft", kind: "range", format: "integer", steps: [1000, 1500, 2000, 3000, 4000], card: false },
{ key: "year", label: "Built", kind: "range", format: "year", steps: [1950, 1980, 2000, 2010, 2020], card: false },
{ key: "beds", label: "Beds", kind: "range", bound: "min", format: "integer", steps: [1, 2, 3, 4, 5], card: false },
{ key: "baths", label: "Baths", kind: "range", bound: "min", format: "decimal", steps: [1, 1.5, 2, 3, 4], card: false },
{
key: "type",
label: "Home type",
kind: "choice",
card: false,
options: [
{ value: "house", label: "House" },
{ value: "condo", label: "Condo" },
{ value: "duplex", label: "Duplex or multifamily building" },
],
},
{
key: "hood",
label: "Neighborhood",
kind: "choice",
card: false,
options: [
{ value: "wash-park", label: "Washington Park" },
{ value: "highlands", label: "Highlands" },
{ value: "lodo", label: "Lower Downtown" },
],
},
{ key: "garage", label: "Garage", kind: "toggle", card: false },
];
---
<FilterBar label="Filter homes" fields={many} modes={modes} modesLabel="Buy or rent" sorts={sorts} defaults={{ mode: "buy", sort: "newest" }} textLabel="Where" textPlaceholder="Street or neighborhood" />With an action
The actions slot sits at the bar's right end, after Clear: here a Save search button.
This preview did not load.
examples/filterbar/save-search.astro
---
import Button from "@astronomic-dev/ui/components/Button.astro";
import FilterBar from "@astronomic-dev/ui/components/FilterBar.astro";
import { fields, modes, sorts } from "../_data/vega.ts";
---
<FilterBar label="Filter homes" fields={fields} modes={modes} modesLabel="Buy or rent" sorts={sorts} defaults={{ mode: "buy", sort: "newest" }} textLabel="Where" textPlaceholder="Street or neighborhood">
<Button slot="actions" type="button">Save search</Button>
</FilterBar>No switch
A list with one mode, such as homes for sale only: no modes, no switch.
This preview did not load.
examples/filterbar/no-modes.astro
---
import FilterBar from "@astronomic-dev/ui/components/FilterBar.astro";
import { fields, sorts } from "../_data/vega.ts";
// A list with one mode, such as homes for sale only: no switch. The price field still has labels per mode, so pass
// one field list for sales.
const sale = fields.map((field) => (field.key === "price" ? { ...field, labels: undefined, steps: [500000, 750000, 1000000, 1500000, 2000000], period: "once" as const, resetOnMode: false } : field));
---
<FilterBar label="Filter homes for sale" fields={sale} sorts={sorts} defaults={{ sort: "newest" }} textLabel="Where" textPlaceholder="Street or neighborhood" />