Skip to content

Badge

The Badge component highlights status, labels, or categories with compact visual indicators.

NeutralSuccessWarningErrorPrimarySecondary
import { Badge } from '@fintech-sandpit/ui/react';
return (
<Badge variant="subtle" colorScheme="primary">
New
</Badge>
);
NameTypeDefaultDescription
colorSchemeColorSchemeneutralColor scheme for the badge
sizeSizemdBadge size
variantBadgeVariantsubtleBadge style variant
type BadgeVariant = 'solid' | 'subtle' | 'outline'
type ColorScheme = 'neutral' | 'primary' | 'secondary' | 'success' | 'warning' | 'danger'
type Size = 'xs' | 'sm' | 'md' | 'lg'