UNPKG

@wix/design-system

Version:

@wix/design-system

21 lines (18 loc) 770 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; expandDirection?: 'left' | 'right'; predicate?: (option: DropdownLayoutValueOption) => boolean; debounceMs?: number; onExpandTransitionStart?: (collapsed: boolean) => void; onExpandTransitionEnd?: (collapsed: boolean) => void; } export default class Search extends React.Component<SearchProps> { clear: (event?: React.ChangeEvent<HTMLInputElement>) => void; blur: () => void; focus: () => void; }