Badge
badge · Elements
A pill — a branch name, a counter, a status chip.
Import
cpp
#include "gbui/widgets/badge.hpp"Example
cpp
NodeId badge(Ui& ui, std::string_view value, const BadgeOptions& options = {});API
BadgeOptions
| Option | Type | Default | What it does |
|---|---|---|---|
background | Token | Token::BgOverlay | |
foreground | Token | Token::TextMuted | The text on the wash. Paired with background, and the contrast between the two is the caller's to get right — a pill is one node and there is nothing here that can check it. |