Badge
The Badge component highlights status, labels, or categories with compact visual indicators.
NeutralSuccessWarningErrorPrimarySecondary
NeutralSuccessWarningErrorPrimarySecondary
Example
Section titled “Example”import { Badge } from '@fintech-sandpit/ui/react';
return ( <Badge colorScheme="primary" size="md" variant="subtle" > New </Badge>);<script setup lang="ts">import { Badge } from '@fintech-sandpit/ui/vue';</script>
<template> <Badge color-scheme="primary" size="md" variant="subtle" > New </Badge></template>| Name | Type | Default | Description |
|---|---|---|---|
colorScheme | ColorScheme | neutral | Color scheme for the badge |
size | Size | md | Badge size |
variant | BadgeVariant | subtle | Badge style variant |
| Name | Type | Default | Description |
|---|---|---|---|
color-scheme | ColorScheme | neutral | Color scheme for the badge |
size | Size | md | Badge size |
variant | BadgeVariant | subtle | Badge style variant |
type BadgeVariant = 'solid' | 'subtle' | 'outline'type ColorScheme = 'neutral' | 'primary' | 'secondary' | 'success' | 'warning' | 'danger'type Size = 'xs' | 'sm' | 'md' | 'lg'