You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
909 B
26 lines
909 B
import * as React from 'react';
|
|
export declare type SwitchSize = 'small' | 'default';
|
|
export declare type SwitchChangeEventHandler = (checked: boolean, event: MouseEvent) => void;
|
|
export declare type SwitchClickEventHandler = SwitchChangeEventHandler;
|
|
export interface SwitchProps {
|
|
prefixCls?: string;
|
|
size?: SwitchSize;
|
|
className?: string;
|
|
checked?: boolean;
|
|
defaultChecked?: boolean;
|
|
onChange?: SwitchChangeEventHandler;
|
|
onClick?: SwitchClickEventHandler;
|
|
checkedChildren?: React.ReactNode;
|
|
unCheckedChildren?: React.ReactNode;
|
|
disabled?: boolean;
|
|
loading?: boolean;
|
|
autoFocus?: boolean;
|
|
style?: React.CSSProperties;
|
|
title?: string;
|
|
}
|
|
interface CompoundedComponent extends React.ForwardRefExoticComponent<SwitchProps & React.RefAttributes<HTMLElement>> {
|
|
__ANT_SWITCH: boolean;
|
|
}
|
|
declare const Switch: CompoundedComponent;
|
|
export default Switch;
|