Icon

<vscode-icon>

Display a Codicon. In "action-icon" mode it behaves like a button. In this case, it is recommended that a meaningful label is specified with the label property.

Properties

actionIcon reflected

Behaves like a button

Attributeaction-icon
Typeboolean
Defaultfalse
label

Set a meaningful label in action-icon mode for the screen readers

Attributelabel
Typestring
Default''
name

Codicon icon name.

Attributename
Typestring
Default''
size

Icon size in pixels

Attributesize
Typenumber
Default16
spin reflected

Enable rotation animation

Attributespin
Typeboolean
Defaultfalse
spinDuration

Animation duration in seconds

Attributespin-duration
Typenumber
Default1.5
version readonly

VSC Element version

Custom CSS Properties

--vscode-focusBorder

--vscode-icon-foreground

--vscode-toolbar-activeBackground

Active state background color in active-icon mode

--vscode-toolbar-hoverBackground

Hover state background color in active-icon mode