-
-
Notifications
You must be signed in to change notification settings - Fork 116
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1463761
commit 8902e89
Showing
2 changed files
with
81 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
# Plugins API | ||
|
||
Plugins API for easier DevTools integrations. | ||
|
||
## Installation | ||
|
||
::: code-group | ||
|
||
```sh [npm] | ||
$ npm add -D @vue/devtools-next-api | ||
``` | ||
|
||
```sh [pnpm] | ||
$ pnpm add -D @vue/devtools-next-api | ||
``` | ||
|
||
```sh [yarn] | ||
$ yarn add -D @vue/devtools-next-api | ||
``` | ||
|
||
```sh [bun] | ||
$ bun add -D @vue/devtools-next-api | ||
``` | ||
|
||
::: | ||
|
||
## `addCustomTab` | ||
|
||
```ts | ||
import { devtools } from '@vue/devtools-next-api' | ||
|
||
addCustomTab({ | ||
// unique identifier | ||
name: 'vue-use', | ||
// title to display in the tab | ||
title: 'VueUse', | ||
// any icon from Iconify, or a URL to an image | ||
icon: 'i-logos-vueuse', | ||
// iframe view | ||
view: { | ||
type: 'iframe', | ||
src: 'https://vueuse.org/', | ||
}, | ||
category: 'advanced', | ||
}) | ||
``` |