shineout
Version:
Shein 前端组件库
13 lines (12 loc) • 525 B
TypeScript
import React from 'react';
import { GetInputableProps } from '../Form/Props';
import { SimpleSwitchProps, CheckboxProviderProps } from '../Checkbox/Props';
export declare type SwitchPropsWithInput = GetInputableProps<CheckboxProviderProps<SimpleSwitchProps>, boolean>;
/**
* @title Switch
*/
export declare type SwitchProps = Omit<SwitchPropsWithInput, 'filterSameChange'>;
export declare class Switch extends React.Component<SwitchProps, any> {
render(): JSX.Element;
}
export declare type SwitchType = typeof Switch;