# SearchPillProps

Props for [`SearchPill`](https://docs.mapcairn.com/api/map/SearchPill.md).

This is an interface exported by `@mapcairn/map`, checked against version 0.2.0.

## Signature

```ts
import type { SearchPillProps } from "@mapcairn/map";
 
interface SearchPillProps
```

## Properties

### getBias

```ts
readonly getBias?: () => Bounds | undefined;
```

Returns the box to favour results inside, usually the visible map. Read
once when each search is submitted. Optional, and passed to
[`useSearch`](https://docs.mapcairn.com/api/map/useSearch-function.md), whose note on what a bias sends applies.

### onBlur

```ts
readonly onBlur?: FocusEventHandler<HTMLInputElement>;
```

Passed through from the input, for example to close the search surface.

### onFocus

```ts
readonly onFocus?: FocusEventHandler<HTMLInputElement>;
```

Passed through from the input, for example to open the search surface.

### onSelect

```ts
readonly onSelect: (result: SearchResult) => void;
```

Called when the user picks a result, by click, tap or Enter.

## See also

- [`Bounds`](https://docs.mapcairn.com/api/core/Bounds.md)
- [`SearchResult`](https://docs.mapcairn.com/api/core/SearchResult.md)

Source: [packages/map/src/tools/SearchPill/SearchPill.tsx:29](https://github.com/MapCairn/mapcairn/blob/main/packages/map/src/tools/SearchPill/SearchPill.tsx#L29)
