UNPKG

antd

Version:

An enterprise-class UI design language and React-based implementation

30 lines (29 loc) 841 B
/// <reference types="react" /> import React from 'react'; export interface BadgeProps { /** Number to show in badge */ count: number | string; /** Max count to show */ overflowCount?: number; /** whether to show red dot without number */ dot?: boolean; style?: React.CSSProperties; prefixCls?: string; className?: string; status?: 'success' | 'processing' | 'default' | 'error' | 'warning'; text?: string; } export default class Badge extends React.Component<BadgeProps, any> { static defaultProps: { prefixCls: string; count: null; dot: boolean; overflowCount: number; }; static propTypes: { count: React.Requireable<any>; dot: React.Requireable<any>; overflowCount: React.Requireable<any>; }; render(): JSX.Element; }