UNPKG

react-bootstrap-v5

Version:

Bootstrap 4 components built with React

23 lines (22 loc) 851 B
import React from 'react'; import FormCheckInput from './FormCheckInput'; import FormCheckLabel from './FormCheckLabel'; import { BsPrefixPropsWithChildren, BsPrefixRefForwardingComponent } from './helpers'; export declare type FormCheckType = 'checkbox' | 'radio' | 'switch'; export interface FormCheckProps extends BsPrefixPropsWithChildren, React.InputHTMLAttributes<HTMLInputElement> { inline?: boolean; disabled?: boolean; label?: React.ReactNode; type?: FormCheckType; isValid?: boolean; isInvalid?: boolean; feedbackTooltip?: boolean; feedback?: React.ReactNode; bsSwitchPrefix?: string; } declare type FormCheck = BsPrefixRefForwardingComponent<'input', FormCheckProps> & { Input: typeof FormCheckInput; Label: typeof FormCheckLabel; }; declare const FormCheck: FormCheck; export default FormCheck;