mr-component
Version:
A library for Mr components
32 lines (31 loc) • 953 B
TypeScript
import React from 'react';
export interface MrSwitchCellProps {
/** 左侧文字 */
label?: string;
/** 左侧文字大小 */
labelFontSize?: number;
/** 左侧文字粗细 */
labelFontWeight?: number;
/** 左侧文字颜色 */
labelFontColor?: string;
/** 是否选中 */
checked?: boolean;
/** 默认是否选中 */
defaultChecked?: boolean;
/** 切换回调 */
onChange?: (checked: boolean) => void;
/** 是否禁用 */
disabled?: boolean;
/** 开启时颜色 */
activeColor?: string;
/** 关闭时颜色 */
inactiveColor?: string;
/** 开关尺寸 */
size?: number | string;
/** 自定义类名 */
className?: string;
/** 自定义样式 */
style?: React.CSSProperties;
}
declare const RefMrSwitchCell: import("react").ForwardRefExoticComponent<MrSwitchCellProps & import("react").RefAttributes<HTMLDivElement>>;
export default RefMrSwitchCell;