// Type definitions for react-toggle 2.2 // Project: https://github.com/aaronshaf/react-toggle // Definitions by: Karol Janyst // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.3 import { Component, HTMLAttributes, ReactNode } from "react"; export interface ToggleIcons { checked?: ReactNode; unchecked?: ReactNode; } export interface ToggleProps extends HTMLAttributes { "aria-labelledby"?: string; "aria-label"?: string; icons?: boolean | ToggleIcons; } export default class Toggle extends Component {}