1 | import * as React from 'react';
|
2 | import type { PresetColorType, PresetStatusColorType } from '../_util/colors';
|
3 | import type { LiteralUnion } from '../_util/type';
|
4 | import Ribbon from './Ribbon';
|
5 | export type { ScrollNumberProps } from './ScrollNumber';
|
6 | interface CompoundedComponent extends React.FC<BadgeProps> {
|
7 | Ribbon: typeof Ribbon;
|
8 | }
|
9 | export interface BadgeProps {
|
10 |
|
11 | count?: React.ReactNode;
|
12 | showZero?: boolean;
|
13 |
|
14 | overflowCount?: number;
|
15 |
|
16 | dot?: boolean;
|
17 | style?: React.CSSProperties;
|
18 | prefixCls?: string;
|
19 | scrollNumberPrefixCls?: string;
|
20 | className?: string;
|
21 | status?: PresetStatusColorType;
|
22 | color?: LiteralUnion<PresetColorType, string>;
|
23 | text?: React.ReactNode;
|
24 | size?: 'default' | 'small';
|
25 | offset?: [number | string, number | string];
|
26 | title?: string;
|
27 | children?: React.ReactNode;
|
28 | }
|
29 | declare const Badge: CompoundedComponent;
|
30 | export default Badge;
|