Files
Speedtest-Tracker/conf/site/node_modules/react-bootstrap/cjs/FormCheck.d.ts
2020-07-08 12:08:03 +01:00

26 lines
915 B
TypeScript

import React from 'react';
import FormCheckInput from './FormCheckInput';
import FormCheckLabel from './FormCheckLabel';
import { BsPrefixPropsWithChildren, BsPrefixRefForwardingComponent } from './helpers';
export declare type FormCheckType = 'checkbox' | 'radio' | 'switch';
export interface FormCheckProps extends BsPrefixPropsWithChildren, Pick<React.HTMLAttributes<HTMLElement>, 'style'> {
bsCustomPrefix?: string;
id?: string;
inline?: boolean;
disabled?: boolean;
title?: string;
label?: React.ReactNode;
custom?: boolean;
type?: FormCheckType;
isValid?: boolean;
isInvalid?: boolean;
feedbackTooltip?: boolean;
feedback?: React.ReactNode;
}
declare type FormCheck = BsPrefixRefForwardingComponent<'input', FormCheckProps> & {
Input: typeof FormCheckInput;
Label: typeof FormCheckLabel;
};
declare const FormCheck: FormCheck;
export default FormCheck;