Skip to content

Command.icon?

Command › icon?

Official

Type: IconName

Icon ID to be used in the toolbar.

See https://docs.obsidian.md/Plugins/User+interface/Icons for available icons and how to add your own.

Example:

const command: Command = {
id: 'example-command',
name: 'Example command',
icon: 'dice',
};