UNPKG

873 BTypeScriptView Raw
1import React from 'react';
2import FormCheckInput from './FormCheckInput';
3import FormCheckLabel from './FormCheckLabel';
4import { BsPrefixPropsWithChildren, BsPrefixRefForwardingComponent } from './helpers';
5export declare type FormCheckType = 'checkbox' | 'radio' | 'switch';
6export interface FormCheckProps extends BsPrefixPropsWithChildren, React.InputHTMLAttributes<HTMLInputElement> {
7 bsCustomPrefix?: string;
8 inline?: boolean;
9 disabled?: boolean;
10 label?: React.ReactNode;
11 custom?: boolean;
12 type?: FormCheckType;
13 isValid?: boolean;
14 isInvalid?: boolean;
15 feedbackTooltip?: boolean;
16 feedback?: React.ReactNode;
17}
18declare type FormCheck = BsPrefixRefForwardingComponent<'input', FormCheckProps> & {
19 Input: typeof FormCheckInput;
20 Label: typeof FormCheckLabel;
21};
22declare const FormCheck: FormCheck;
23export default FormCheck;