Skip to content

RibbonItem

Unofficial

Represents a button item in the sidebar ribbon.

Import:

import type { RibbonItem } from 'obsidian';

Signature:

export interface RibbonItem

Properties

Property Type Description
buttonEl? HTMLElement The rendered button element, once created.
hidden boolean Whether this ribbon item is hidden.
icon IconName Icon name displayed for this ribbon item.
id string Unique identifier for this ribbon item.
title string Tooltip title displayed on hover.

Methods

Method Returns Description
callback() Promise<void> Callback invoked when this ribbon item is clicked.

Links to this page: