ComboInput

Campo de texto con lista de sugerencias asociada.

import { ComboInput } from '#LibComponents/react/atomic/comboinput/comboinput.component';

Props del tipo del componente

PropTipoObligatorioDefaultDescripción
onSelectChange(inputValue: StaticFields) => voidsí—
onChange(inputValue: StaticFields) => voidsí—
onFocus(name: string) => voidno—
onFormError(error: ErrorOnField) => voidno—
autocomplete'on' | 'off'no—
classNamestringno—
classOpts{ classInput?: string; classNameFocused?: string; classBody?: string; classBodyOpen?: string; classItem?: string; classError?: string; }no—
comboNamestringsí—
defaultSelectedTno—
disabledbooleanno—
forceUpdatebooleanno—
hasTogglebooleanno—
hasErrorbooleanno—
i18n{ placeholder?: string; noresults?: string; resultlist?: string; customErrMesg?: string; }no—
labelstringsí—
lazyloadingbooleanno—
errorMarkbooleanno—
namestringsí—
requiredbooleanno—
selectItemsArray<T>sí—
valuestringsí—
validPatternsRegExp[]no—
renderHeader(option: T | undefined) => JSX.Element | nullno—
renderOption(option: T | undefined) => JSX.Element | nullno—
mapOption(option: T | undefined) => stringsí—
round'none' | 'sm' | 'md' | 'lg'no—
labelFloatingbooleanno—