UNPKG

963 BTypeScriptView Raw
1import * as React from 'react';
2import { FeedbackType } from './Feedback';
3import { BsPrefixProps, BsPrefixRefForwardingComponent } from './helpers';
4export declare type FormCheckType = 'checkbox' | 'radio' | 'switch';
5export interface FormCheckProps extends BsPrefixProps, React.InputHTMLAttributes<HTMLInputElement> {
6 inline?: boolean;
7 reverse?: boolean;
8 disabled?: boolean;
9 label?: React.ReactNode;
10 type?: FormCheckType;
11 isValid?: boolean;
12 isInvalid?: boolean;
13 feedbackTooltip?: boolean;
14 feedback?: React.ReactNode;
15 feedbackType?: FeedbackType;
16 bsSwitchPrefix?: string;
17}
18declare const _default: BsPrefixRefForwardingComponent<"input", FormCheckProps> & {
19 Input: BsPrefixRefForwardingComponent<"input", import("./FormCheckInput").FormCheckInputProps>;
20 Label: React.ForwardRefExoticComponent<import("./FormCheckLabel").FormCheckLabelProps & React.RefAttributes<HTMLLabelElement>>;
21};
22export default _default;