Files
Speedtest-Tracker/conf/site/node_modules/react-bootstrap/esm/FormControl.d.ts
Henry Whitaker 3a99dc5495 Updated to v1.3.3
2020-05-05 09:34:02 +01:00

32 lines
745 B
TypeScript

import * as React from 'react';
import Feedback from './Feedback';
import { BsPrefixRefForwardingComponent } from './helpers';
type FormControlElement =
| HTMLInputElement
| HTMLSelectElement
| HTMLTextAreaElement;
export interface FormControlProps {
size?: 'sm' | 'lg';
plaintext?: boolean;
readOnly?: boolean;
disabled?: boolean;
value?: string | string[] | number;
onChange?: React.ChangeEventHandler<FormControlElement>;
custom?: boolean;
type?: string;
id?: string;
isValid?: boolean;
isInvalid?: boolean;
}
declare interface FormControl
extends BsPrefixRefForwardingComponent<'input', FormControlProps> {
Feedback: typeof Feedback;
}
declare const FormControl: FormControl;
export default FormControl;