Skip to content

Commit

Permalink
chore: hoppscotch ui plugin import issue fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
anwarulislam committed Dec 28, 2023
1 parent 08968c4 commit 186ce4f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,15 +31,15 @@ In your `main.ts` file, import the library and register it as a plugin:
import { createApp } from "vue"
import App from "./App.vue"
// Import the library
import { plugin } from "@hoppscotch/ui"
import HoppUI from "@hoppscotch/ui"

// Import the styles
import "@hoppscotch/ui/style.css"

const app = createApp(App)

// Register the library as a plugin
app.use(plugin)
app.use(HoppUI)

app.mount("#app")
```
Expand Down
2 changes: 2 additions & 0 deletions src/plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,5 @@ export const plugin: Plugin = {
app.provide(HOPP_UI_OPTIONS, options)
},
}

export default plugin

0 comments on commit 186ce4f

Please sign in to comment.