@flexis/ui
Version:
Styleless React Components
21 lines • 867 B
TypeScript
import { InputHTMLAttributes, Ref, ChangeEvent, PureComponent } from 'react';
import PropTypes from 'prop-types';
import { CombinePropsAndAttributes } from '../../helpers';
import { Primitive, InputValue } from '../common/types';
interface ISelfProps {
elementRef?: Ref<HTMLInputElement>;
value?: InputValue;
onChange?(value: Primitive, event: ChangeEvent): void;
}
export declare type IProps = CombinePropsAndAttributes<ISelfProps, InputHTMLAttributes<HTMLInputElement>>;
export default class Checkbox extends PureComponent<IProps> {
static propTypes: {
elementRef: PropTypes.Requireable<(...args: any[]) => any>;
onChange: PropTypes.Requireable<(...args: any[]) => any>;
value: PropTypes.Requireable<string | number>;
};
render(): JSX.Element;
private onChange;
}
export {};
//# sourceMappingURL=Checkbox.d.ts.map