Skip to content

Button type link

In the context of the Obsidian Buttons plugin, type link defines a specific button behavior where the interactive element acts as a hyperlink to an external resource.^[600-developer-tools-obsidian-obsidian-buttons-create.md]

When this type is specified, the button does not execute an internal command or script but instead directs the user to a specified URL, such as a project repository or documentation page.^[600-developer-tools-obsidian-obsidian-buttons-create.md]

Configuration Parameters

To create a functional link button, specific parameters must be included in the button code block:

  • type link: This declaration explicitly sets the button's mode to that of a hyperlink.^[600-developer-tools-obsidian-obsidian-buttons-create.md]
  • action: This parameter holds the target URL that the button will navigate to when clicked.^[600-developer-tools-obsidian-obsidian-buttons-create.md]

Example

The following configuration creates a button named "github-buttons" that redirects to the plugin's GitHub repository:

```button
name github-buttons
type link
action https://github.com/shabegom/buttons
```

^[600-developer-tools-obsidian-obsidian-buttons-create.md]

Sources

  • 600-developer-tools-obsidian-obsidian-buttons-create.md