TeaSpeak-Client/imports/shared-app/ui/react-elements/Checkbox.d.ts
2021-02-20 18:55:36 +01:00

20 lines
539 B
TypeScript

import * as React from "react";
import { ReactElement } from "react";
export interface CheckboxProperties {
label?: ReactElement | string;
disabled?: boolean;
onChange?: (value: boolean) => void;
value?: boolean;
initialValue?: boolean;
children?: never;
}
export interface CheckboxState {
checked?: boolean;
disabled?: boolean;
}
export declare class Checkbox extends React.Component<CheckboxProperties, CheckboxState> {
constructor(props: any);
render(): JSX.Element;
private onStateChange;
}