You have an example in the @vite-pwa/nuxt integration repo.
You can also check Elk repo for a real world example: we're working to update the repo.
Elk repo is using
Push Notifications and
Web Share Target API PWA capabilities and
Prompt for update register type via