UNPKG

551 BTypeScriptView Raw
1import * as React from 'react';
2export interface CheckableTagProps {
3 prefixCls?: string;
4 className?: string;
5 style?: React.CSSProperties;
6 /**
7 * It is an absolute controlled component and has no uncontrolled mode.
8 *
9 * .zh-cn 该组件为完全受控组件,不支持非受控用法。
10 */
11 checked: boolean;
12 onChange?: (checked: boolean) => void;
13 onClick?: (e: React.MouseEvent<HTMLSpanElement, MouseEvent>) => void;
14}
15declare const CheckableTag: React.FC<CheckableTagProps>;
16export default CheckableTag;