TeaSpeak-Client/imports/shared-app/ui/react-elements/Checkbox.d.ts

21 lines
563 B
TypeScript
Raw Normal View History

2021-02-20 12:55:36 -05:00
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;
2021-04-19 14:27:12 -04:00
className?: string;
2021-02-20 12:55:36 -05:00
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;
}