1 | import React from 'react';
|
2 | import FormCheckInput from './FormCheckInput';
|
3 | import FormCheckLabel from './FormCheckLabel';
|
4 | import { BsPrefixPropsWithChildren, BsPrefixRefForwardingComponent } from './helpers';
|
5 | export declare type FormCheckType = 'checkbox' | 'radio' | 'switch';
|
6 | export 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 | }
|
18 | declare type FormCheck = BsPrefixRefForwardingComponent<'input', FormCheckProps> & {
|
19 | Input: typeof FormCheckInput;
|
20 | Label: typeof FormCheckLabel;
|
21 | };
|
22 | declare const FormCheck: FormCheck;
|
23 | export default FormCheck;
|