Documentation
Design
Components
Badge

EccUtilsDesignBadge Component

2.0.0-alpha.6
<ecc-utils-design-badge/>
EccUtilsDesignBadge

Overview

The ecc-utils-design-badge component is a simple, customizable badge for displaying statuses, counts, or labels. It provides several visual variants and sizes to suit different contexts.

This component is built with Lit and Tailwind CSS, ensuring it is lightweight and easily stylable.

Usage

Badge Variants

This example shows the different visual styles of the badge.

DefaultSecondaryDestructiveOutline

Badge Sizes

This example demonstrates the different sizes available for the badge.

SmallMediumLarge

Properties

PropertyTypeDefaultDescription
variant"default" | "secondary" | "destructive" | "outline""default"The visual style of the badge.
size"sm" | "md" | "lg""md"The size of the badge.

variant

Controls the visual style of the badge, which is useful for conveying status or intent.

<EccUtilsDesignBadge variant="destructive">Error</EccUtilsDesignBadge>

size

Determines the size of the badge, affecting its padding and font size.

<EccUtilsDesignBadge size="lg">Large Badge</EccUtilsDesignBadge>

Events

This component does not emit any custom events.

Elixir Cloud & AAICloud SDKElixir

Released under Apache 2.0 License.

Copyright © 2023-2025 ELIXIR