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

22 lines
575 B
TypeScript

import * as React from "react";
export interface SwitchProperties {
value?: boolean;
initialState?: boolean;
className?: string;
label?: string | React.ReactElement;
labelSide?: "right" | "left";
disabled?: boolean;
onChange?: (value: boolean) => void;
onBlur?: () => void;
}
export interface SwitchState {
checked: boolean;
disabled?: boolean;
}
export declare class Switch extends React.Component<SwitchProperties, SwitchState> {
private readonly ref;
constructor(props: any);
render(): JSX.Element;
focus(): void;
}