Badge
Overview
A badge is a small, visual element typically used in user interfaces to highlight or categorize information. Badges are often displayed as small, colorful labels or indicators, usually attached to an item, such as a text block, button, or icon.
Common uses for badges include:
Labeling Information: Badges can be used to categorize or tag items, such as marking something as
New
,Important
orFeatured
.Status Indicators: They can reflect the status of an item, like
Active
,Completed
orPending
.
Badges are primarily used to draw attention to specific pieces of information.
Attributes:
Attributes are the options available for each component, allowing you to customize its appearance and control their behavior. It includes various sections explained below.
Basic:
Attribute Name | Description |
---|---|
Component Size |
For example, |
Label | "Label" is refers to the name that is displayed to users. You can include label from multiple value source. Reference: Merge Text |
Variant | Variant Change the color of the badge name. below are the different variants Default: Default color is dark grey. Inverse: Change the badge color to dark grey. Lightest: Change the badge color to white. Success: Change the badge color to Green. Warning: Change the badge color to Orange. Error: Change the badge color to Red. |
Left Icon | This field lets you choose different icon to display on the left side of the badge. |
Right Icon | This field lets you choose different icon to display on the Right side of the badge. |
Base UI:
UI State:
Attribute Name | Description |
Visibility Type | It determines whether a component is visible on the layout. It offers the following visibility types:
Reference: Conditional Visibility |