UNPKG

699 BTypeScriptView Raw
1import * as React from 'react';
2
3import FormCheckInput from './FormCheckInput';
4import FormCheckLabel from './FormCheckLabel';
5
6import { BsPrefixComponent } from './helpers';
7
8export 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
22declare 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
29export default FormCheck;