Button
Basic example
Section titled “Basic example”<vscode-button>Button</vscode-button>
Secondary button
Section titled “Secondary button”<vscode-button secondary>Secondary button</vscode-button>
Disabled button
Section titled “Disabled button”<vscode-button disabled>Disabled button</vscode-button>
Button with icons
Section titled “Button with icons”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">
<vscode-button icon="account" icon-after="chevron-right">Icons</vscode-button>
Icon button
Section titled “Icon button”<vscode-button icon="settings-gear" title="Settings"></vscode-button>
Custom icons
Section titled “Custom icons”Customized styles
Section titled “Customized styles”Styles can be tweaked.
<vscode-button class="settings-button-example">Add item</vscode-button><vscode-button class="scm-button-example" icon="check">Commit</vscode-button>
.settings-button-example { line-height: 18px; padding: 2px 14px;}
.scm-button-example { line-height: 26px; width: 179px;}