vue

Auto Imports

Make use of unplugin-auto-import with Unhead Schema.org.

If you're using unplugin-auto-import, you can easily setup the composables for automatic imports.

vite.config.ts
import { schemaAutoImports } from '@unhead/schema-org-vue'
export default defineConfig({
  plugins: [
    AutoImport({
      imports: [
        {
          '@unhead/schema-org-vue': schemaAutoImports,
        },
      ],
    }),
  ]
})