UNPKG

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