import React from 'react'; import { LabelProps } from '../Label/Label'; import './Autocomplete.scss'; export interface Option { id: number; label: string; } interface AutocompleteProps { /** * Label props for Autocomplete */ labelProps?: LabelProps; /** * Set true or false to display the Label */ showLabel?: boolean; /** * set boolean value to ensure if error */ error?: boolean; /** * set boolean value to display/disabled */ disabled?: boolean; /** * set boolean value to display the border */ showBorder?: boolean; /** * Customize the border based on boolean */ showBorderOnHover?: boolean; /** * for customize the Autocomplete use className props(if required) */ className?: string; /** * for error message passed argument as string */ errorMsg?: string; /** * Required options for autocomplete in the appropriate manner */ options: Option[]; /** * placeholder for the Autocomplete */ placeholder: string; /** * for controlled component pass the onChange props */ onChange?: (option: Option) => void; /** * for clear the selected option from the input onClear is must */ onClear?: () => void; /** * By Default select one option selectedData is must */ selectedData?: Option; } declare const Autocomplete: React.FC; export default Autocomplete;