Icon
icon · Elements
One icon from the built-in Lucide set.
Import
cpp
#include "gbui/widgets/icon.hpp"Example
cpp
NodeId icon(Ui& ui, Icon which, const IconOptions& options = {});API
IconOptions
| Option | Type | Default | What it does |
|---|---|---|---|
color | Token | Token::Text | |
size | float | 16.0f | Side of the square the icon is drawn in. |
stroke | float | 2.0f | Stroke width on Lucide's 24-unit grid; scaled with the icon. |