UNPKG

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