Overview
This is a personal note on using VueUse for implementing text selection functionality with Nuxt 3 (Vue 3).
Demo

You can try it from the following page.
https://nuxt3-demo-git-main-nakamura196.vercel.app/textSelection
The source code is at the following URL.
https://github.com/nakamura196/nuxt3-demo/blob/main/pages/textSelection.vue
Installation Method
The installation instructions are described on the following page.
The specific steps are as follows.
npm i -D @vueuse/nuxt @vueuse/core
// nuxt.config.ts
export default defineNuxtConfig({
modules: [
'@vueuse/nuxt',
],
})
Summary
In addition to text selection, there seem to be many other useful features available, so I would like to continue trying them out.