react-bootstrap
Version:
Bootstrap 5 components built with React
20 lines (19 loc) • 766 B
TypeScript
import * as React from 'react';
import { BsPrefixProps, BsPrefixRefForwardingComponent } from './helpers';
type FormControlElement = HTMLInputElement | HTMLTextAreaElement;
export interface FormControlProps extends BsPrefixProps, React.HTMLAttributes<FormControlElement> {
htmlSize?: number;
size?: 'sm' | 'lg';
plaintext?: boolean;
readOnly?: boolean;
disabled?: boolean;
value?: string | string[] | number;
onChange?: React.ChangeEventHandler<FormControlElement>;
type?: string;
isValid?: boolean;
isInvalid?: boolean;
}
declare const _default: BsPrefixRefForwardingComponent<"input", FormControlProps> & {
Feedback: BsPrefixRefForwardingComponent<"div", import("./Feedback").FeedbackProps>;
};
export default _default;