Clean up interfaces and classname

This commit is contained in:
Jorik Schellekens 2020-06-10 15:57:28 +01:00
parent 8a0e4a4954
commit 52c7577972
3 changed files with 26 additions and 28 deletions

View file

@ -21,13 +21,13 @@ import * as sdk from "../../../index";
interface IProps {
// Whether or not this toggle is in the 'on' position.
checked: boolean,
checked: boolean;
// Whether or not the user can interact with the switch
disabled: boolean,
disabled: boolean;
// Called when the checked state changes. First argument will be the new state.
onChange(checked: boolean): void,
onChange(checked: boolean): void;
};
// Controlled Toggle Switch element, written with Accessibility in mind