Dashboard sipadu mbip
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.

FormCheck.d.ts 735B

12345678910111213141516171819202122232425262728
  1. import * as React from 'react';
  2. import FormCheckInput from './FormCheckInput';
  3. import FormCheckLabel from './FormCheckLabel';
  4. import { BsPrefixComponent } from './helpers';
  5. export interface FormCheckProps {
  6. bsCustomPrefix?: string;
  7. innerRef?: React.LegacyRef<this>;
  8. id?: string;
  9. inline?: boolean;
  10. disabled?: boolean;
  11. title?: string;
  12. label?: React.ReactNode;
  13. custom?: boolean;
  14. type?: 'checkbox' | 'radio' | 'switch';
  15. isValid?: boolean;
  16. isInvalid?: boolean;
  17. feedback?: React.ReactNode;
  18. }
  19. declare class FormCheck<
  20. As extends React.ElementType = 'input'
  21. > extends BsPrefixComponent<As, FormCheckProps> {
  22. static Input: typeof FormCheckInput;
  23. static Label: typeof FormCheckLabel;
  24. }
  25. export default FormCheck;