/// import { IStylableProps } from '../Generic.types'; export interface ICheckboxProps extends IStylableProps { /** * The ID to use for the input and for/htmlFor */ id?: string; /** * Label to pass to element. */ label: React.ReactNode; /** * LeftLabel */ leftLabel?: React.ReactNode; /** * Value for the checkbox */ value: boolean; /** * onChange */ onChange?: (val: boolean) => any; /** * If the field is valid. Used for controlling aria tags on input * @default true */ isValid?: boolean; /** * The id to the error message. To be used in aria-describedby attribute on input. */ errorMessageId?: string; /** * Any additional props are passed through to the underlying element. */ [key: string]: any; } export default ICheckboxProps;