UNPKG

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