Log inGet started
Package

iconButton.module

Newest version

This package holds more than this page lists. See all of its files in its world.

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 the iconBtn builder 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 iconBtn for full option semantics.
  • Useful when reading code: iconButton reads more naturally in some call sites, iconBtn is shorter for inline use.