choerodon-ui
Version:
An enterprise-class UI design language and React-based implementation
27 lines (26 loc) • 905 B
TypeScript
import React, { CSSProperties, ReactNode } from 'react';
import { PresetColorType, PresetStatusColorType } from '../_util/colors';
import { LiteralUnion } from '../_util/type';
export { ScrollNumberProps } from './ScrollNumber';
export interface BadgeProps {
/** Number to show in badge */
count?: ReactNode;
showZero?: boolean;
/** Max count to show */
overflowCount?: number;
/** Whether to show red dot without number */
dot?: boolean;
style?: CSSProperties;
prefixCls?: string;
scrollNumberPrefixCls?: string;
className?: string;
status?: PresetStatusColorType;
color?: LiteralUnion<PresetColorType, string>;
text?: ReactNode;
size?: 'default' | 'small';
offset?: [number | string, number | string];
title?: string;
children?: ReactNode;
}
declare const _default: React.NamedExoticComponent<BadgeProps>;
export default _default;