29 lines
735 B
TypeScript
29 lines
735 B
TypeScript
import * as React from 'react';
|
|
import FormCheckInput from './FormCheckInput';
|
|
import FormCheckLabel from './FormCheckLabel';
|
|
import { BsPrefixComponent } from './helpers';
|
|
|
|
export interface FormCheckProps {
|
|
bsCustomPrefix?: string;
|
|
innerRef?: React.LegacyRef<this>;
|
|
id?: string;
|
|
inline?: boolean;
|
|
disabled?: boolean;
|
|
title?: string;
|
|
label?: React.ReactNode;
|
|
custom?: boolean;
|
|
type?: 'checkbox' | 'radio' | 'switch';
|
|
isValid?: boolean;
|
|
isInvalid?: boolean;
|
|
feedback?: React.ReactNode;
|
|
}
|
|
|
|
declare class FormCheck<
|
|
As extends React.ElementType = 'input'
|
|
> extends BsPrefixComponent<As, FormCheckProps> {
|
|
static Input: typeof FormCheckInput;
|
|
static Label: typeof FormCheckLabel;
|
|
}
|
|
|
|
export default FormCheck;
|