public class | source
import Badge from 'flarum/common/components/Badge'
src/common/Component.js~Component → Badge
Badge component represents a user/discussion badge, indicating some
status (e.g. a discussion is stickied, a user is an admin).
A badge may have the following special attrs:
typeThe type of badge this is. This will be used to give the badge a class name of
iconThe name of an icon to show inside the badge.
All other attrs will be assigned as attributes on the badge element.
public view(): * source