UNPKG

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