customizable-react-badges
Version:
Customizable and Reusable React Badge component for your all kinds of Projects and WebSites.
13 lines (12 loc) • 425 B
TypeScript
import React from 'react';
export interface BadgeProps {
content: string | number;
bgColor?: string;
max?: number;
contentColor?: string;
verticalAlignment?: 'top' | 'bottom';
horizontalAlignment?: 'left' | 'right';
hideZero?: boolean;
}
declare const Badge: React.FC<BadgeProps & React.DetailedHTMLProps<React.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>>;
export default Badge;