GoScrobble/web/node_modules/react-bootstrap/cjs/FormLabel.d.ts

17 lines
654 B
TypeScript
Raw Permalink Normal View History

2022-04-25 02:47:15 +00:00
import { ColProps } from './Col';
import { BsPrefixPropsWithChildren, BsPrefixRefForwardingComponent } from './helpers';
interface FormLabelBaseProps extends BsPrefixPropsWithChildren {
htmlFor?: string;
srOnly?: boolean;
}
export interface FormLabelOwnProps extends FormLabelBaseProps {
column?: false;
}
export interface FormLabelWithColProps extends FormLabelBaseProps, ColProps {
column: true | 'sm' | 'lg';
}
export declare type FormLabelProps = FormLabelWithColProps | FormLabelOwnProps;
declare type FormLabel = BsPrefixRefForwardingComponent<'label', FormLabelProps>;
declare const FormLabel: FormLabel;
export default FormLabel;