# Search Input

#### [View on MongoDB.design](https://www.mongodb.design/component/search-input/live-example/)
## Installation
### PNPM
```shell
pnpm add @leafygreen-ui/search-input
```
### Yarn
```shell
yarn add @leafygreen-ui/search-input
```
### NPM
```shell
npm install @leafygreen-ui/search-input
```
## Example
```js
import {
SearchInput,
SearchResult,
SearchResultGroup,
} from '@leafygreen-ui/search-input';
{
console.log('SB: Change');
}}
aria-label="some label"
>
{
console.log('SB: Click Apple');
}}
description="This is a description"
>
Apple
Banana
Carrot
Dragonfruit
Cayenne
Ghost pepperHabaneroJalapeƱoRed pepperScotch bonnet;
```
## Properties
| Prop | Type | Description | Default |
| ----------------- | -------------------------------------- | ---------------------------------------------------------------------------------------------------- | --------- |
| `darkMode` | `boolean` | Determines whether or not the component appears in dark theme. | `false` |
| `state` | `'none'`, `'loading'`, | The current state of the SearchInput. | `none` |
| `size` | `'small'`, `'default'`, `'large'` | Determines the font size, padding and spacing. | `default` |
| `disabled` | `boolean` | Determines whether the field is currently disabled. | `false` |
| `value` | `string` | The current value of the text box. | `''` |
| `placeholder` | `string` | The placeholder text shown in the input field before the user begins typing. | `Search` |
| `aria-labelledby` | `string` | A value for `aria-labelledby`. Allows use of the component with an external `