import { HTMLAttributes, CSSProperties, ReactNode } from 'react';
import { Omit } from '../../utils/type';
/**
* @title Badge
*/
export interface BadgeProps extends Omit, 'className'> {
style?: CSSProperties;
className?: string | string[];
/**
* 徽标显示的数字
* @defaultValue 0
*/
count?: number | ReactNode;
/**
* 自定义提示内容
*/
text?: string;
/**
* 显示为小红点
*/
dot?: boolean;
/**
* 徽标的样式
*/
dotStyle?: CSSProperties;
/**
* 徽标的类名
*/
dotClassName?: string | string[];
/**
* 徽标最大显示数值,如果 count 超过这个数值会显示为 `${maxCount}+`
* @defaultValue 99
*/
maxCount?: number;
/**
* 设置徽标位置的偏移
*/
offset?: [number, number];
/**
* 内置的一些颜色
*/
color?: 'red' | 'orangered' | 'orange' | 'gold' | 'lime' | 'green' | 'cyan' | 'pdblue' | 'purple' | 'pinkpurple' | 'magenta' | 'gray' | string;
/**
* 徽标的状态类型
*/
status?: 'default' | 'processing' | 'success' | 'warning' | 'error';
children?: ReactNode;
}