Skip to content

Commit 01b08c9

Browse files
committed
Update docs
1 parent a06d655 commit 01b08c9

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/content/articles/getting-started.mdx

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,13 @@ tabs.addEventListener('vsc-tabs-select', () => {
100100
});
101101
```
102102

103+
Most of the components use native events if possible. When a component has a custom event, the event
104+
is exported as a TypeScript type. All exported events are descendants of the `CustomEvent` class.
105+
106+
```typescript
107+
import type { VscTabsSelectEvent } from "@vscode-elements/elements/dist/vscode-tabs/vscode-tabs";
108+
```
109+
103110
### Slots
104111

105112
Slots are used to accept HTML content.

0 commit comments

Comments
 (0)