1.9.5 • Published 6 months ago
@types/rc-switch v1.9.5
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
// Type definitions for rc-switch 1.9
// Project: https://github.com/react-component/switch
// Definitions by: Karol Majewski <https://github.com/karol-majewski>
// Matteo Frana <https://github.com/matteofrana>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.8
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: Thu, 16 Dec 2021 22:32:05 GMT
- Dependencies: @types/react
- Global values: none
Credits
These definitions were written by Karol Majewski, and Matteo Frana.