react-bootstrap
Version:
Bootstrap 5 components built with React
23 lines (22 loc) • 955 B
TypeScript
import * as React from 'react';
import { FeedbackType } from './Feedback';
import { BsPrefixProps, BsPrefixRefForwardingComponent } from './helpers';
export type FormCheckType = 'checkbox' | 'radio' | 'switch';
export interface FormCheckProps extends BsPrefixProps, React.InputHTMLAttributes<HTMLInputElement> {
inline?: boolean;
reverse?: boolean;
disabled?: boolean;
label?: React.ReactNode;
type?: FormCheckType;
isValid?: boolean;
isInvalid?: boolean;
feedbackTooltip?: boolean;
feedback?: React.ReactNode;
feedbackType?: FeedbackType;
bsSwitchPrefix?: string;
}
declare const _default: BsPrefixRefForwardingComponent<"input", FormCheckProps> & {
Input: BsPrefixRefForwardingComponent<"input", import("./FormCheckInput").FormCheckInputProps>;
Label: React.ForwardRefExoticComponent<import("./FormCheckLabel").FormCheckLabelProps & React.RefAttributes<HTMLLabelElement>>;
};
export default _default;