mirror of
https://github.com/idanoo/GoScrobble.git
synced 2024-11-23 00:45:16 +00:00
24 lines
873 B
TypeScript
24 lines
873 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, React.InputHTMLAttributes<HTMLInputElement> {
|
|
bsCustomPrefix?: string;
|
|
inline?: boolean;
|
|
disabled?: boolean;
|
|
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;
|