@ant-design/pro-form
Version:
14 lines (13 loc) • 498 B
TypeScript
import type { SwitchProps } from 'antd';
import React from 'react';
import type { ProFormFieldItemProps } from '../../typing';
export type ProFormSwitchProps = Omit<ProFormFieldItemProps<SwitchProps, HTMLElement>, 'emptyText'> & {
checkedChildren?: SwitchProps['checkedChildren'];
unCheckedChildren?: SwitchProps['unCheckedChildren'];
};
/**
* @zh-cn 单选 Switch
* @en-us Single Choice Switch
*/
declare const ProFormSwitch: React.FC<ProFormSwitchProps>;
export default ProFormSwitch;