1 | import * as React from 'react';
|
2 | import FormCheckInput from './FormCheckInput';
|
3 | import FormCheckLabel from './FormCheckLabel';
|
4 | import { BsPrefixComponent } from './helpers';
|
5 |
|
6 | export interface FormCheckProps {
|
7 | bsCustomPrefix?: string;
|
8 | innerRef?: React.LegacyRef<this>;
|
9 | id?: string;
|
10 | inline?: boolean;
|
11 | disabled?: boolean;
|
12 | title?: string;
|
13 | label?: React.ReactNode;
|
14 | custom?: boolean;
|
15 | type?: 'checkbox' | 'radio' | 'switch';
|
16 | isValid?: boolean;
|
17 | isInvalid?: boolean;
|
18 | feedback?: React.ReactNode;
|
19 | }
|
20 |
|
21 | declare class FormCheck<
|
22 | As extends React.ElementType = 'input'
|
23 | > extends BsPrefixComponent<As, FormCheckProps> {
|
24 | static Input: typeof FormCheckInput;
|
25 | static Label: typeof FormCheckLabel;
|
26 | }
|
27 |
|
28 | export default FormCheck;
|