UNPKG

@wix/design-system

Version:

@wix/design-system

18 lines (15 loc) 618 B
import * as React from 'react'; import { InputWithOptionsProps } from '../InputWithOptions'; import { DropdownLayoutValueOption } from '../DropdownLayout'; export interface SearchProps extends InputWithOptionsProps { renderEmptyState?: (value: InputWithOptionsProps['value']) => React.ReactNode; expandable?: boolean; expandWidth?: string | number; predicate?: (option: DropdownLayoutValueOption) => boolean; debounceMs?: number; } export default class Search extends React.Component<SearchProps> { clear: (event?: React.ChangeEvent<HTMLInputElement>) => void; blur: () => void; focus: () => void; }