UNPKG

@sheerid/jslib-nightly

Version:

SheerID JavaScript Library

39 lines (37 loc) 1.27 kB
import { default as React } from 'react'; import { FormSelectChoice, InputSelectOnKeyDown, FieldId, ExtendedFieldId } from '../../../lib/types/types'; export interface InputSelectProps { onChange: any; options: FormSelectChoice[]; fieldId: FieldId | ExtendedFieldId; fieldLabelId?: string; className?: string; disabled?: boolean; inputId?: string; isErrored?: boolean; onKeyDown?: InputSelectOnKeyDown; placeholder?: string; suppressPlaceholder?: boolean; value?: FormSelectChoice; autoFocus?: boolean; ariaLabel?: string; ariaDescribedBy?: string; isRequired?: boolean; isLoading?: boolean; buttonRef?: string; role?: string; autoComplete?: string; } export declare const InputSelectComponent: { ({ className, inputId, disabled, fieldId, fieldLabelId, isErrored, options, onKeyDown, onChange, placeholder, suppressPlaceholder, value, autoFocus, ariaLabel, ariaDescribedBy, isRequired, isLoading, role, autoComplete, }: InputSelectProps): React.JSX.Element; defaultProps: { className: any; disabled: boolean; inputId: any; isErrored: boolean; onKeyDown: any; placeholder: string; value: any; autoComplete: any; }; };