mirror of
https://github.com/henrywhitaker3/Speedtest-Tracker.git
synced 2025-12-25 23:03:36 +01:00
26 lines
915 B
TypeScript
26 lines
915 B
TypeScript
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, Pick<React.HTMLAttributes<HTMLElement>, 'style'> {
|
|
bsCustomPrefix?: string;
|
|
id?: string;
|
|
inline?: boolean;
|
|
disabled?: boolean;
|
|
title?: string;
|
|
label?: React.ReactNode;
|
|
custom?: boolean;
|
|
type?: FormCheckType;
|
|
isValid?: boolean;
|
|
isInvalid?: boolean;
|
|
feedbackTooltip?: boolean;
|
|
feedback?: React.ReactNode;
|
|
}
|
|
declare type FormCheck = BsPrefixRefForwardingComponent<'input', FormCheckProps> & {
|
|
Input: typeof FormCheckInput;
|
|
Label: typeof FormCheckLabel;
|
|
};
|
|
declare const FormCheck: FormCheck;
|
|
export default FormCheck;
|