You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

3 年之前
123456789101112131415161718192021222324252627282930313233
  1. import * as React from 'react';
  2. import FormCheck from './FormCheck';
  3. import FormFile from './FormFile';
  4. import FormControl from './FormControl';
  5. import FormGroup from './FormGroup';
  6. import FormLabel from './FormLabel';
  7. import FormText from './FormText';
  8. import { BsPrefixComponent, BsPrefixRefForwardingComponent } from './helpers';
  9. export class FormRow<
  10. As extends React.ElementType = 'div'
  11. > extends BsPrefixComponent<As> {}
  12. export interface FormProps {
  13. inline?: boolean;
  14. validated?: boolean;
  15. }
  16. declare interface Form
  17. extends BsPrefixRefForwardingComponent<'form', FormProps> {
  18. Row: typeof FormRow;
  19. Group: typeof FormGroup;
  20. Control: typeof FormControl;
  21. Check: typeof FormCheck;
  22. File: typeof FormFile;
  23. Label: typeof FormLabel;
  24. Text: typeof FormText;
  25. }
  26. declare const Form: Form;
  27. export default Form;