4.0.5 • Published 6 months ago

@types/react-toggle v4.0.5

Weekly downloads
43,445
License
MIT
Repository
github
Last release
6 months ago

Installation

npm install --save @types/react-toggle

Summary

This package contains type definitions for react-toggle (https://github.com/aaronshaf/react-toggle).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-toggle/v2.

index.d.ts

// Type definitions for react-toggle 2.2
// Project: https://github.com/aaronshaf/react-toggle
// Definitions by: Karol Janyst <https://github.com/LKay>
//                 Jason Unger <https://github.com/jsonunger>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.8

import { ComponentClass, InputHTMLAttributes, ReactNode } from "react";

declare namespace Toggle {
    interface ToggleIcons {
        checked?: ReactNode | undefined;
        unchecked?: ReactNode | undefined;
    }

    interface ToggleProps extends InputHTMLAttributes<HTMLInputElement> {
        icons?: boolean | ToggleIcons | undefined;
        defaultChecked?: boolean | undefined;
    }
}

declare const Toggle: ComponentClass<Toggle.ToggleProps>;

export = Toggle;

Additional Details

  • Last updated: Wed, 07 Jul 2021 18:31:47 GMT
  • Dependencies: @types/react
  • Global values: none

Credits

These definitions were written by Karol Janyst, and Jason Unger.

2.2.9

7 months ago

4.0.5

6 months ago

4.0.4

7 months ago

2.2.10

6 months ago

2.2.8

3 years ago

4.0.3

3 years ago

4.0.2

6 years ago

2.2.7

6 years ago

2.2.6

6 years ago

2.2.5

6 years ago

4.0.1

6 years ago

4.0.0

7 years ago

2.2.4

7 years ago

2.2.3

7 years ago

2.2.2

7 years ago

2.2.1

7 years ago

2.2.0

7 years ago