@types/react-toggle
TypeScript icon, indicating that this package has built-in type declarations

4.0.5 • Public • Published

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.

index.d.ts

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

export interface ToggleIcons {
    checked?: ReactNode | undefined;
    unchecked?: ReactNode | undefined;
}

export interface ToggleProps extends InputHTMLAttributes<HTMLInputElement> {
    "aria-labelledby"?: string | undefined;
    "aria-label"?: string | undefined;
    icons?: boolean | ToggleIcons | undefined;
}

export default class Toggle extends Component<ToggleProps> {}

Additional Details

  • Last updated: Tue, 07 Nov 2023 20:08:00 GMT
  • Dependencies: @types/react

Credits

These definitions were written by Karol Janyst.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/react-toggle

Weekly Downloads

50,878

Version

4.0.5

License

MIT

Unpacked Size

3.53 kB

Total Files

5

Last publish

Collaborators

  • types