Skip to content

Commit

Permalink
docs(README): script setup example
Browse files Browse the repository at this point in the history
  • Loading branch information
palerdot committed Feb 29, 2024
1 parent 792e30f commit 704a26b
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,13 @@ Note: v2.x is still compatible with `Vue 3`. Please use latest v1.x (v1.8.0 at t

```javascript
// import the component
<script setup>
import VueSpeedometer from "vue-speedometer"
</script>
// and use it in your component like
export default {
components: { VueSpeedometer },
template: `<vue-speedometer />`,
}
<template>
<VueSpeedometer />
</template>
```

`vue-speedometer` is the name of the component to be used inside Vue templates
Expand Down

0 comments on commit 704a26b

Please sign in to comment.