Badge
Small inline label for a count or status, rendered as a circle or pill in a semantic color.
Colors
Section titled “Colors”Animation effect
Section titled “Animation effect”certara-badge
Section titled “certara-badge”Properties
Section titled “Properties”color
| Attribute | color |
| Type | "brand" | "critical" | "cyan" | "danger" | "info" | "magenta" | "neutral" | "olive" | "orange" | "periwinkle" | "success" | "warning" |
| Default | undefined |
| Required | false |
| Description | Sets the color of the badge. Defaults to brand. |
shape
| Attribute | shape |
| Type | "badge" | "circle" | "pill" |
| Default | undefined |
| Required | false |
| Description | Sets the shape of the badge. Defaults to badge. |
type
| Attribute | type |
| Type | "badge" | "circle" | "pill" |
| Default | undefined |
| Required | false |
| Description | Sets the shape of the badge. DEPRECATED. Use shape instead. Will be removed in the next major version. |
variant
| Attribute | variant |
| Type | "brand" | "critical" | "cyan" | "danger" | "info" | "magenta" | "neutral" | "olive" | "orange" | "periwinkle" | "success" | "warning" |
| Default | undefined |
| Required | false |
| Description | Sets the color of the badge. DEPRECATED. Use color instead. Will be removed in the next major version. |
Badges are either subtle or bold and use color to indicate meanings that users can learn and recognize across products.
Design guidelines
Section titled “Design guidelines”Animation effect
Section titled “Animation effect” In practice
Section titled “In practice”Selecting the badge’s shape and color
Section titled “Selecting the badge’s shape and color”- Use pills to display only counts.
- Use critical badges sparingly and reserve them to display only counts like unread notification or unresolved issues.
Accessibility
Section titled “Accessibility”- Text must be clear enough for color blind users to be able to understand immediately without needing to rely only on the color.
- Avoid using badges for longer text. Badges are not focusable, so the text truncated after 200 (or the custom maxWidth value) pixels will not be accessible.