@devfamily/admiral
Version:
Admiral is a frontend framework for creating back office using React. It provides out-of-the-box components and tools that make developing an admin interface easy and fast.
22 lines (21 loc) • 833 B
TypeScript
/// <reference types="react" />
export declare const BadgeStatusTypes: ["success", "normal", "error", "system", "warning"];
export declare type BadgeStatusType = typeof BadgeStatusTypes[number];
export declare const BadgeSizeTypes: ["XS", "S", "M", "L"];
export declare type BadgeSizeType = typeof BadgeSizeTypes[number];
export declare const BadgeViewTypes: ["filled", "stroked"];
export declare type BadgeViewType = typeof BadgeViewTypes[number];
export interface BadgeProps {
/** Number to show in badge */
count?: React.ReactNode;
showZero?: boolean;
/** Max count to show */
overflowCount?: number;
/** Whether to show red dot without number */
dot?: boolean;
className?: string;
status?: BadgeStatusType;
view?: BadgeViewType;
size?: BadgeSizeType;
children?: React.ReactNode;
}