@amalto/checkbox-input
Version:
Checkbox input used on platform6.
33 lines (32 loc) • 918 B
TypeScript
import * as React from 'react';
import { BaseFieldProps } from 'redux-form';
declare namespace CheckboxInput {
interface Props extends BaseFieldProps {
name: string;
label: string | JSX.Element;
disabled?: boolean;
help?: string;
containerClass?: string;
inputClass?: string;
collapseErrorSpace?: boolean;
children?: React.ReactNode;
key?: React.ReactText;
ref?: React.Ref<CheckboxInput>;
component?: any;
format?: any;
normalize?: any;
props?: any;
parse?: any;
validate?: any;
warn?: any;
withRef?: any;
}
interface State {
}
}
declare class CheckboxInput extends React.Component<CheckboxInput.Props, CheckboxInput.State> {
constructor(props: CheckboxInput.Props);
private renderCheckbox;
render(): JSX.Element;
}
export default CheckboxInput;