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