interface BadgeProps {
    children?: ReactNode;
    className?: string;
    classNames?: {
        indicator?: string;
        root?: string;
    };
    color?: LiteralUnion<"blue" | "cyan" | "gold" | "green" | "lime" | "magenta" | "orange" | "pink" | "purple" | "red" | "yellow" | "volcano" | "geekblue">;
    count?: ReactNode;
    dot?: boolean;
    offset?: [string | number, string | number];
    overflowCount?: number;
    prefixCls?: string;
    rootClassName?: string;
    scrollNumberPrefixCls?: string;
    showZero?: boolean;
    size?: "default" | "small";
    status?: "default" | "error" | "success" | "warning" | "processing";
    style?: CSSProperties;
    styles?: {
        indicator?: CSSProperties;
        root?: CSSProperties;
    };
    text?: ReactNode;
    title?: string;
}

Properties

children?: ReactNode
className?: string
classNames?: {
    indicator?: string;
    root?: string;
}

Type declaration

  • Optional indicator?: string
  • Optional root?: string
color?: LiteralUnion<"blue" | "cyan" | "gold" | "green" | "lime" | "magenta" | "orange" | "pink" | "purple" | "red" | "yellow" | "volcano" | "geekblue">
count?: ReactNode

Number to show in badge

dot?: boolean

Whether to show red dot without number

offset?: [string | number, string | number]
overflowCount?: number

Max count to show

prefixCls?: string
rootClassName?: string
scrollNumberPrefixCls?: string
showZero?: boolean
size?: "default" | "small"
status?: "default" | "error" | "success" | "warning" | "processing"
style?: CSSProperties
styles?: {
    indicator?: CSSProperties;
    root?: CSSProperties;
}

Type declaration

  • Optional indicator?: CSSProperties
  • Optional root?: CSSProperties
text?: ReactNode
title?: string

Generated using TypeDoc