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.
 
 
 
 

28 lines
633 B

  1. import * as React from 'react';
  2. import { ColProps } from './Col';
  3. import { BsPrefixRefForwardingComponent } from './helpers';
  4. interface FormLabelBaseProps {
  5. htmlFor?: string;
  6. srOnly?: boolean;
  7. }
  8. export interface FormLabelOwnProps extends FormLabelBaseProps {
  9. column?: false;
  10. }
  11. export interface FormLabelWithColProps extends FormLabelBaseProps, ColProps {
  12. column: true | 'sm' | 'lg';
  13. }
  14. export type FormLabelProps = FormLabelWithColProps | FormLabelOwnProps;
  15. declare interface FormLabel
  16. extends BsPrefixRefForwardingComponent<'label', FormLabelProps> {}
  17. declare const FormLabel: FormLabel;
  18. export default FormLabel;