@ -6,7 +6,7 @@ The helper methods are globally importable from `vitepress` and are typically us
Methods that start with `use*` indicates that it is a [Vue 3 Composition API](https://vuejs.org/guide/introduction.html#composition-api) function that can only be used inside `setup()` or `<script setup>`.
Methods that start with `use*` indicates that it is a [Vue 3 Composition API](https://vuejs.org/guide/introduction.html#composition-api) function that can only be used inside `setup()` or `<script setup>`.
## `useData`
## `useData`<Badgetype="info"text="composable"/>
Returns page-specific data. The returned object has the following type:
Returns page-specific data. The returned object has the following type:
@ -40,7 +40,7 @@ const { theme } = useData()
</template>
</template>
```
```
## `useRoute`
## `useRoute`<Badgetype="info"text="composable"/>
Returns the current route object with the following type:
Returns the current route object with the following type: