Badge
A small label, usually indicating tier status.
Default badge orc-c-badge
A small label, usually indicating tier status.
Small badge orc-c-badge--small
Shrinks the size of the default badge.
Yellow badge orc-c-badge--yellow
Applies a yellow background to the badge.
Velvet badge orc-c-badge--velvet
Changes the badgestyling to present the Velvet tier.
Sterling badge orc-c-badge--sterling
Changes the badge styling to represent the Sterling tier.
Gold badge orc-c-badge--gold
Changes the badge styling to represent the Gold tier.
Platinum badge orc-c-badge--platinum
Changes the badge styling to represent the Platinum tier.
Usage
When to use
Use within Identity to denote a user’s tier status. The backend logic will automatically select the appropriate badge for the member or tier being described. It could also be used in other Cosmopolitan experiences to label experiences or offers.
When to consider an alternative
Since this component is integral to the Identity experience, use good judgment in applying it elsewhere.
Class Name | Description |
---|---|
Required
|
Apply to the badge’s containing HTML element. This provides the general layout of the badge component and uses modifiers to change styles like the background and text color. This is set to |
Modifier
|
Apply in addition to the |
Modifier
|
Apply in addition to the |
Modifier
|
Apply in addition to the |
Modifier
|
Apply in addition to the |
Modifier
|
Apply in addition to the |
Modifier
|
Apply in addition to the |
Required
|
Class used for icons within the design system to set the base styles. |
Required
|
Apply in addition to |
Required
|
Apply to a |