Skip to content

Commit 4eae849

Browse files
committed
Add jsdoc comments
1 parent a1ee4db commit 4eae849

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

src/vscode-tree-item/vscode-tree-item.ts

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,19 @@ function getParentItem(childItem: VscodeTreeItem) {
4242
return childItem.parentElement;
4343
}
4444

45+
/**
46+
* Represents an item in a Tree component.
47+
*
48+
* @tag vscode-tree
49+
*
50+
* @slot - Main content
51+
* @slot icon-branch - Custom icon for a closed branch item.
52+
* @slot icon-branch-opened - Custom icon for an opened branch item.
53+
* @slot icon-leaf - Custom icon for a leaf item.
54+
* @slot description - Description of the item. Displayed with a smaller font size and a less prominent color.
55+
* @slot actions - Container for action buttons.
56+
* @slot decoration - Container for small decorative elements aligned to the right edge of the item.
57+
*/
4558
@customElement('vscode-tree-item')
4659
export class VscodeTreeItem extends VscElement {
4760
static override styles = styles;

0 commit comments

Comments
 (0)