Skip to content

Icon ​

icon · Elements

One icon from the built-in Lucide set.

Import ​

cpp
#include "gbui/widgets/icon.hpp"

Example ​

Nothing is downloaded until you press it.

cpp
NodeId icon(Ui& ui, Icon which, const IconOptions& options = {});

API ​

IconOptions ​

OptionTypeDefaultWhat it does
colorTokenToken::Text
sizefloat16.0fSide of the square the icon is drawn in.
strokefloat2.0fStroke width on Lucide's 24-unit grid; scaled with the icon.

Released under the LGPL-3.0-or-later licence.