Code Examples

useHead
// all the goodies
useHead({
  // Titles
  title: 'Hello World',
  titleTemplate: '%s %separator %siteName',
  // Template params
  templateParams: { separator: '|', siteName: 'My App' },
  // Classes
  bodyAttrs: { class: { overflow: true } },
  // Deduping
  script: [{ key: '123', src: 'https://example.com/script.js' }],
})

API