Non puoi selezionare più di 25 argomenti Gli argomenti devono iniziare con una lettera o un numero, possono includere trattini ('-') e possono essere lunghi fino a 35 caratteri.

FormControl.d.ts 745 B

3 anni fa
12345678910111213141516171819202122232425262728293031
  1. import * as React from 'react';
  2. import Feedback from './Feedback';
  3. import { BsPrefixRefForwardingComponent } from './helpers';
  4. type FormControlElement =
  5. | HTMLInputElement
  6. | HTMLSelectElement
  7. | HTMLTextAreaElement;
  8. export interface FormControlProps {
  9. size?: 'sm' | 'lg';
  10. plaintext?: boolean;
  11. readOnly?: boolean;
  12. disabled?: boolean;
  13. value?: string | string[] | number;
  14. onChange?: React.ChangeEventHandler<FormControlElement>;
  15. custom?: boolean;
  16. type?: string;
  17. id?: string;
  18. isValid?: boolean;
  19. isInvalid?: boolean;
  20. }
  21. declare interface FormControl
  22. extends BsPrefixRefForwardingComponent<'input', FormControlProps> {
  23. Feedback: typeof Feedback;
  24. }
  25. declare const FormControl: FormControl;
  26. export default FormControl;