usePaper
usePaper():
ShallowRef<Paper>
Composable that provides access to a Paper in the current scope, as a reactive ref.
<script setup>
import { usePaper } from "@visuallyjs/browser-ui-vue"
const paper = usePaper()
function doSomething() {
paper.doSomething....
}
</script>
<template>
<button :click="doSomething()">Do something</button>
</template>
Returns
ShallowRef<Paper>