Syntax highlighting

Access text, images, and other media with Nuxt and the Sanity headless CMS.

This module exports a groq helper function to assist with GROQ syntax highlighting and eslint rules. Make sure to install the VSCode extension - and enjoy!

Example

<script>
import { groq } from '@nuxtjs/sanity'

// In VS Code this will be highlighted
const query = groq`*[_type == "article"][0].title`
</script>