@sheerid/jslib-nightly
Version:
SheerID JavaScript Library
20 lines (18 loc) • 1.28 kB
TypeScript
import { default as React } from 'react';
import { InputSelectProps } from '../../FormInputs/InputSelect/InputSelectComponent';
export interface FormFieldInputSelectComponentProps extends Omit<InputSelectProps, "inputHtmlId" | "id" | "errorId" | "isErrored"> {
fieldId: string;
label: React.ReactNode;
showPlaceholderAndHideLabel?: boolean;
errorMessage?: React.ReactNode;
explanation?: string | JSX.Element;
containerId?: string;
refId?: string;
isLoading?: boolean;
}
/**
* Generic input select field component.
* In the JSLIB, a field has a label, inline error message, and an input of some kind.
*/
export declare const FormFieldInputSelect: ({ fieldId, value, onChange, placeholder, label, errorMessage, showPlaceholderAndHideLabel, isRequired, isLoading, disabled, explanation, autoFocus, options, containerId, onKeyDown, refId, suppressPlaceholder, }: FormFieldInputSelectComponentProps) => React.JSX.Element;
export declare const FormFieldInputSelectComponent: ({ fieldId, value, onChange, placeholder, label, errorMessage, showPlaceholderAndHideLabel, isRequired, isLoading, disabled, explanation, autoFocus, options, containerId, onKeyDown, refId, suppressPlaceholder, }: FormFieldInputSelectComponentProps) => React.JSX.Element;