Builtin Library
README.md
iconButton
Square button rendered with the phosphor glyph font. Thin alias for
Z.iconBtn — re-requires the same builder so the call shapes are
identical. Pick whichever name reads better at the call site.
Exports
iconButton(iconText: string, callbackId: string, opts: table?) -> WidgetNode— module returns theiconBtnbuilder directly.
Usage
local Z = require("@builtin::modules.zui")
Z.iconButton("", "save:click", { id = "save", tooltip = "Save" })
Notes
- This module is a one-line
return require("modules.zui.widget.iconBtn"). - See
iconBtnfor full option semantics. - Useful when reading code:
iconButtonreads more naturally in some call sites,iconBtnis shorter for inline use.