acud
Version:
acg react 组件库
29 lines (28 loc) • 1.03 kB
TypeScript
import * as React from 'react';
import { SizeType } from '../config-provider/SizeContext';
import CheckableTag from './CheckableTag';
import TagList from './TagList';
import { PresetStatusType } from '../_util/colors';
import { LiteralUnion } from '../_util/type';
export { CheckableTagProps } from './CheckableTag';
export { TagListProps } from './TagList';
export interface TagProps extends React.HTMLAttributes<HTMLSpanElement> {
prefixCls?: string;
className?: string;
color?: LiteralUnion<PresetStatusType, string>;
size?: SizeType;
closable?: boolean;
closeIcon?: React.ReactNode;
visible?: boolean;
disabled?: boolean;
onClose?: (e: React.MouseEvent<HTMLElement>) => void;
style?: React.CSSProperties;
icon?: React.ReactNode;
type?: string;
}
export interface TagType extends React.ForwardRefExoticComponent<TagProps & React.RefAttributes<HTMLElement>> {
CheckableTag: typeof CheckableTag;
TagList: typeof TagList;
}
declare const Tag: TagType;
export default Tag;