Skip to content
This repository has been archived by the owner on Jan 6, 2025. It is now read-only.

Latest commit

 

History

History
36 lines (24 loc) · 2.33 KB

README.md

File metadata and controls

36 lines (24 loc) · 2.33 KB

Visual Studio Code Badge

The vscode-badge component is used to highlight an item, attract attention, and/or flag status.

Badge hero

Usage

❌ Don't ✅ Do
Badge with text value Badge with number value
Don't use a badge to display text content. Use a vscode-tag component instead. Use a badge to display numbers.
❌ Don't ✅ Do
Badge used to display and error Badge showing the number of items in a history view
Don't use a badge to indicate an error. Use badges to indicate the numbered state of an element.
❌ Don't ✅ Do
Multiple badges on one element One badge used for each section in a view
Don't use more than one badge on a single element. Ensure badges are clearly associated with their parent element.

Implementation

Interactive component examples

Attributes

None

Basic Badge

<vscode-badge>1</vscode-badge>