npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

vuejs3-vuetify-query-builder

v1.8.5

Published

A flexible and customizable query builder component for Vue.js 3, designed to work seamlessly with Vuetify. Create complex, nested queries using a simple and intuitive UI.

Downloads

33

Readme

Vue.js 3 Query Builder

A flexible and customizable query builder component for Vue.js 3, designed to work seamlessly with Vuetify. Create complex, nested queries using a simple and intuitive UI.

Effortlessly build advanced filtering logic with support for grouping, multiple operators, and diverse field types. The component is highly extensible, making it easy to tailor the user experience and appearance to your project’s requirements. With a focus on usability and performance, this query builder is ideal for dashboards, admin panels, and any application that needs advanced search or filtering capabilities.


Installation

Install the package via npm:

npm install @vuejs3/vuetify-query-builder

Basic Usage

Import and register the component in your Vue 3 application. Supports both the Options API and Composition API.

1. Using the Options API

<template>
  <query-builder v-model="filter" :filter-fields="filterFields" :color="color" />
</template>

<script>
import QueryBuilder from '@vuejs3/vuetify-query-builder'
import '@vue/vuetify-query-builder/dist/style.css'

export default {
  components: { QueryBuilder },
  data() {
    return {
      filter: {},
      filterFields: ['id', 'name', 'date', 'gender'],
      color: 'royalblue'
    }
  }
}
</script>

2. Using the Composition API

<template>
  <query-builder v-model="query" :filter-fields="filterFields" :color="color" />
</template>

<script setup>
import QueryBuilder from '@vuejs3/vuetify-query-builder'
import '@vue/vuetify-query-builder/dist/style.css'
import { ref } from 'vue'

const query = ref({})
const filterFields = ['id', 'name', 'date', 'gender']
const color = 'royalblue'
</script>

Props

| Prop | Type | Required | Default | Description | | -------------- | ----------------------------| -------- | ----------- | ------------------------------------------------------------------ | | modelValue | object or Query | Yes | {} | The current query object (for v-model binding). | | filterFields | Array<string> | Yes | [] | List of fields available for filtering. | | color | string | No | primary | Color theme for the component. Uses your project's primary color by default. |

Query Format

The value bound to v-model should match this interface:

interface Query {
  logicalOperator: 'AND' | 'OR'
  children: Array<Query | QueryRule>
}

interface QueryRule {
  rule?: string
  operator: string // e.g. '=', '!=', '>', etc.
  operand: string
  value: Array<string | number> | string | number | null
}

Example Query Object

{
  "logicalOperator": "AND",
  "children": [
    {
      "rule": "name",
      "operator": "=",
      "operand": "name",
      "value": "John"
    },
    {
      "logicalOperator": "OR",
      "children": [
        {
          "rule": "age",
          "operator": ">",
          "operand": "age",
          "value": 30
        },
        {
          "rule": "gender",
          "operator": "=",
          "operand": "gender",
          "value": "male"
        }
      ]
    }
  ]
}

Screenshot

image

Existing query object:



Credits

Developed and maintained by Harshal Birari / use for Zensar