4.0.5 • Published 6 months ago
@types/react-toggle v4.0.5
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.