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

1.9.5 • Public • Published

Installation

npm install --save @types/rc-switch

Summary

This package contains type definitions for rc-switch (https://github.com/react-component/switch).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/rc-switch.

index.d.ts

import * as React from "react";

export interface Props {
    autoFocus?: boolean | undefined;
    checked?: boolean | undefined;
    checkedChildren?: React.ReactNode | undefined;
    className?: string | undefined;
    defaultChecked?: boolean | undefined;
    disabled?: boolean | undefined;
    loadingIcon?: React.ReactNode | undefined;
    onChange?: ((checked: boolean) => void) | undefined;
    onClick?: ((checked: boolean) => void) | undefined;
    prefixCls?: string | undefined;
    tabIndex?: number | undefined;
    unCheckedChildren?: React.ReactNode | undefined;
}

export default class Switch extends React.Component<Props> {}

Additional Details

  • Last updated: Tue, 07 Nov 2023 09:09:39 GMT
  • Dependencies: @types/react

Credits

These definitions were written by Karol Majewski, and Matteo Frana.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/rc-switch

Weekly Downloads

1,691

Version

1.9.5

License

MIT

Unpacked Size

4.14 kB

Total Files

5

Last publish

Collaborators

  • types