DefinitelyTyped/types/rc-switch/index.d.ts
2019-01-19 01:59:34 +01:00

25 lines
750 B
TypeScript

// Type definitions for rc-switch 1.8
// Project: http://github.com/react-component/switch
// Definitions by: Karol Majewski <https://github.com/karol-majewski>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.8
import * as React from 'react';
export interface Props {
autoFocus?: boolean;
checked?: boolean;
checkedChildren: React.ReactNode;
className?: string;
defaultChecked?: boolean;
disabled?: boolean;
loadingIcon?: React.ReactNode;
onChange?: (checked: boolean) => void;
onClick?: (checked: boolean) => void;
prefixCls?: string;
tabIndex?: number;
unCheckedChildren: React.ReactNode;
}
export default class Switch extends React.Component<Props> {}