Newer
Older
alert / js / node_modules / flarum / common / components / Badge.d.ts
@Réz István Réz István on 18 Nov 2021 588 bytes first commit
/**
 * The `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:
 *
 * - `type` The type of badge this is. This will be used to give the badge a
 *   class name of `Badge--{type}`.
 * - `icon` The name of an icon to show inside the badge.
 * - `label`
 *
 * All other attrs will be assigned as attributes on the badge element.
 */
export default class Badge extends Component<import("../Component").ComponentAttrs> {
}
import Component from "../Component";