` | — | no | Колбек обработки получения фокуса |
| `onSubmit` | `((value: string) => void)` | — | no | Колбек на подтверждение поиска по строке |
| `outline` | `boolean` | `true` | no | Наличие рамки состояния вокруг поля |
| `placeholder` | `string` | — | no | Значение плейсхолдера |
| `showClearButton` | `boolean` | `true` | no | Отображение кнопки Очистки поля |
| `size` | `l \| m \| s` | `m` | no | Размер |
| `tabIndex` | `number` | — | no | |
| `value` | `string` | — | no | Значение input |
#### Related types
- `InputMode` = `decimal | email | none | numeric | search | tel | text | url`
- `Size` = `l | m | s`
## Примеры
### Basic
```tsx
import { Search } from '@cloud-ru/ds-search';
import { useState } from 'react';
export function Basic() {
const [value, setValue] = useState('');
return ;
}
```
### Disabled
```tsx
import { Search } from '@cloud-ru/ds-search';
export function Disabled() {
return ;
}
```
### Loading
```tsx
import { Search } from '@cloud-ru/ds-search';
export function Loading() {
return ;
}
```
### SizeL
```tsx
import { Search } from '@cloud-ru/ds-search';
export function SizeL() {
return ;
}
```
### TransparentBackground
```tsx
import { Search } from '@cloud-ru/ds-search';
export function TransparentBackground() {
return ;
}
```
### WithAfterContent
```tsx
import { APPEARANCE, Button, VIEW } from '@cloud-ru/ds-button';
import { PlaceholderSVG } from '@cloud-ru/ds-icons/interface/system';
import { Search } from '@cloud-ru/ds-search';
import { useState } from 'react';
export function WithAfterContent() {
const [value, setValue] = useState('');
const [submitted, setSubmitted] = useState('');
return (
}
minWidth={false}
onClick={() => setSubmitted(value)}
/>
}
/>
Запрос: {submitted || '—'}
);
}
```