1 | import * as React from 'react';
|
2 |
|
3 | import { ColProps } from './Col';
|
4 |
|
5 | import { BsPrefixComponent } from './helpers';
|
6 |
|
7 | interface FormLabelBaseProps {
|
8 | htmlFor?: string;
|
9 | innerRef?: React.LegacyRef<this>;
|
10 | srOnly?: boolean;
|
11 | }
|
12 |
|
13 | export interface FormLabelOwnProps extends FormLabelBaseProps {
|
14 | column?: false;
|
15 | }
|
16 |
|
17 | export interface FormLabelWithColProps extends FormLabelBaseProps, ColProps {
|
18 | column: true;
|
19 | }
|
20 |
|
21 | export type FormLabelProps = FormLabelWithColProps | FormLabelOwnProps;
|
22 |
|
23 | declare class FormLabel<
|
24 | As extends React.ElementType = 'label'
|
25 | > extends BsPrefixComponent<As, FormLabelProps> {}
|
26 |
|
27 | export default FormLabel;
|