1 | import * as React from 'react';
|
2 | import type { PresetStatusColorType } from '../_util/colors';
|
3 | import type { LiteralUnion } from '../_util/type';
|
4 | import type { PresetColorKey } from '../theme/internal';
|
5 | import Ribbon from './Ribbon';
|
6 | export type { ScrollNumberProps } from './ScrollNumber';
|
7 | type CompoundedComponent = React.ForwardRefExoticComponent<BadgeProps & React.RefAttributes<HTMLSpanElement>> & {
|
8 | Ribbon: typeof Ribbon;
|
9 | };
|
10 | export interface BadgeProps {
|
11 |
|
12 | count?: React.ReactNode;
|
13 | showZero?: boolean;
|
14 |
|
15 | overflowCount?: number;
|
16 |
|
17 | dot?: boolean;
|
18 | style?: React.CSSProperties;
|
19 | prefixCls?: string;
|
20 | scrollNumberPrefixCls?: string;
|
21 | className?: string;
|
22 | rootClassName?: string;
|
23 | status?: PresetStatusColorType;
|
24 | color?: LiteralUnion<PresetColorKey>;
|
25 | text?: React.ReactNode;
|
26 | size?: 'default' | 'small';
|
27 | offset?: [number | string, number | string];
|
28 | title?: string;
|
29 | children?: React.ReactNode;
|
30 | classNames?: {
|
31 | root?: string;
|
32 | indicator?: string;
|
33 | };
|
34 | styles?: {
|
35 | root?: React.CSSProperties;
|
36 | indicator?: React.CSSProperties;
|
37 | };
|
38 | }
|
39 | declare const Badge: CompoundedComponent;
|
40 | export default Badge;
|