Skip to content

Button

Button
<vscode-button>Button</vscode-button>
Secondary button
<vscode-button secondary>Secondary button</vscode-button>
Disabled button
<vscode-button disabled>Disabled button</vscode-button>

To use the icons, the codicons.css file must be included in the page:

<link rel="stylesheet" href="path/to/codicon.css" id="vscode-codicon-stylesheet">
Icons
<vscode-button icon="account" icon-after="chevron-right">Icons</vscode-button>
<vscode-button icon="settings-gear" title="Settings"></vscode-button>
HTML 5 icon

Styles can be tweaked.

Add item Commit
<vscode-button class="settings-button-example">Add item</vscode-button>
<vscode-button class="scm-button-example" icon="check">Commit</vscode-button>