Badge¶
Badge adds a small red marker to the corner of another element. The marker shows a count or a dot. The count stops at 99.
Usage¶
Call Components.Badge with a scope and a table of properties:
- The component reads
Countonce. A count of0shows no marker. SetDottotrueto show a dot instead of a number.
Properties¶
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
Theme |
ThemeRef |
The contextual theme | Theme to use for this component instead of the one from Theme.Provide. |
|
LayoutOrder |
UsedAs<number> |
0 |
Position in a parent UIListLayout or UIGridLayout. |
|
Size |
UsedAs<UDim2> |
- | Size of the component. | |
Content |
Instance |
- | The element to attach the badge to. | |
Count |
UsedAs<number> |
- | Number to show in the marker. Anything above 99 shows as 99. |
|
Dot |
boolean |
false |
Show a dot instead of a number. |