ultra-design
Version:
28 lines (27 loc) • 915 B
TypeScript
import React from 'react';
interface Props {
/**
* @description.zh-CN 选中的值
* @description.en-US value
*/
value: string[];
/**
* @description.zh-CN 禁用整个复选框 group
* @description.en-US disable checkbox group
*/
disabled?: boolean;
/**
* @description.zh-CN 复选框的值改变时触发的回调
* @description.en-US the callback triggered when the value of the checkbox changes
*/
onChange?: (values: string[]) => void;
}
declare type NativeAttrs = Omit<React.HTMLAttributes<any>, keyof Props>;
export declare type CheckboxGroupProps = Props & NativeAttrs;
declare const defaultProps: {
disabled: boolean;
className: string;
};
export declare type MergedCheckboxGroupProps = typeof defaultProps & Props;
declare const CheckboxGroup: React.FC<React.PropsWithChildren<CheckboxGroupProps>>;
export default CheckboxGroup;