View as Markdown

API reference: @salmonui/notifications/badge

BadgeOverlayPropstype

import type { BadgeOverlayProps } from '@salmonui/notifications/badge';
type BadgeOverlayProps = BadgeOverlayBase & ({
    content: ReactNode;
    dot?: false | undefined;
    label?: string | undefined;
} | {
    content?: undefined;
    dot: true;
    label: string;
});

Overlay mode, selected by the presence of the content or dot prop. content of null, undefined, false or '' hides the badge like invisible (0 shows).