Design
Overview
Button: Icon is an action carried by an icon alone, for the secondary controls that sit alongside content and in headers. It can take a small badge at the top right, either as a dot or as a count.
Usage
Top Right Badge
There is an option to enable a smaller top-right icon, which should be used when the Icon Button requires additional contextual information, such as a notification dot or a heart for the favourite team.
Counter Badge
When the top right badge indicates a quantity, for example a comments count, the smallest icon button size (XXS) should not be used. Therefore, the counter only has two sizes: L (20px badge) and M (16px badge).
Values in the thousands can be abbreviated with a K and rounded to the nearest hundred. E.g., 1187 = 1.2k.
|
Item |
Variant |
|---|---|
|
1 |
L (20 px badge) |
|
2 |
M (16 px badge) |
Design
Appearance
|
Item |
Usage |
|---|---|
|
1 |
Light Mode |
|
2 |
Dark Mode |
Variants
|
Item |
Variant |
|---|---|
|
1 |
Without Badge |
|
2 |
With Badge |