Skip to content

WorkspaceRibbon.makeRibbonItemButton method

WorkspaceRibbon › makeRibbonItemButton

Unofficial

Creates a ribbon item button element without registering it.

Signature:

makeRibbonItemButton(icon: string, title: string, callback: (evt: MouseEvent) => unknown): HTMLElement

Parameters:

Parameter Type Description
icon string The lucide icon name.
title string The tooltip title.
callback (evt: MouseEvent) => unknown The click handler.

Returns: HTMLElementThe created button element.