@try-at-software/input-elements
Version:
A package providing different input elements that are extensible and easily configurable for your custom needs.
14 lines (13 loc) • 420 B
TypeScript
import { FormText } from '../Components';
export interface IInvalidationOptions {
errorMessage: FormText;
}
export interface ISingleValueInputElementProps<TValue> {
value: TValue;
label: FormText;
isRequired: boolean;
renderRequiredIndicator: boolean;
errorMessage: FormText;
onChange: (newValue: TValue) => void;
invalidateInput: (options?: IInvalidationOptions) => void;
}