Vue Nuxt
Tips & Tricks

A collection of Vue, Nuxt and Vite tips, tricks and good practices.

In Nuxt Content, you can search your content thanks to the experimental feature called ContentSearch.

first you have to enable this option in your nuxt.config.ts

export default defineNuxtConfig({
  content: {
    experimental: {
      search: true

and then use it in your components

<script lang="ts" setup>
const search  = ref('')

const results = searchContent(search)

    <input v-model="search">

    <pre>{{ results }} </pre>