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

vuetify-dynamic-fields

v1.0.0

Published

Generates dynamic Vuetify form fields from a JSON schema for Vue 3 + Vuetify

Readme

vuetify-dynamic-fields

npm demo

A small Vue 3 plugin that exposes a DynamicFieldsGenerator component for generating dynamic Vuetify form fields driven by a JSON schema.

Install

  • Peer dependencies: vue (>=3), vuetify (>=3), @vuelidate/core, @vuelidate/validators.
  • Install from npm:
npm install vuetify-dynamic-fields

Quick usage

Register the plugin in your app:

import { createApp } from 'vue'
import App from './App.vue'
import DynamicFieldsPlugin from 'vuetify-dynamic-fields'
import 'vuetify/styles'
import { createVuetify } from 'vuetify'

const app = createApp(App)
app.use(createVuetify())
app.use(DynamicFieldsPlugin)
app.mount('#app')

You can also import the DynamicFieldsGenerator component directly from the package if you prefer a per-component import.

Example app (local development)

The example/ folder contains a minimal Vite + Vuetify app used for development and demonstration.

  • 🔗 Homepage / Docs: https://parthjasani.github.io/vuetify-dynamic-fields/
  • 🔗 Live demo: hhttps://parthjasani.github.io/vuetify-dynamic-fields/example.html
  • 🧪 Local dev: see instructions below

To run the example locally:

cd example
npm install
npm run dev
# open http://localhost:5173 (Vite may choose a different port if 5173 is busy)

If you want to test the built bundle inside the example without publishing, run the library build in the root and point the example import to the built file. The recommended workflow for local testing is:

# from project root
npm run build
# then in the example you may import the ESM file from the workspace dist/ path

Notes about package name & imports

  • This repository's package published on npm is named vuetify-dynamic-fields. Importing vuetify-dynamic-fields in your app (or in the example/ project) is the correct, published package name. If you previously followed docs or examples that reference vue-dynamic-fields-generator, change the import to vuetify-dynamic-fields or update your dependency accordingly.

Schema (JSON) reference

Each field in the schema is an object describing a single form control. Fields are provided as an array to the DynamicFieldsGenerator component via the fields prop. Common properties:

  • name (string, required): unique key for the field values.
  • type (string, required): control type. Common values: string, text, email, url, integer, number, select, autocomplete, combobox, checkbox, radio, radio-group.
  • label (string): label/title for the control.
  • required (boolean): whether the field is required.
  • default: default value for the field.
  • min, max (number): numeric range limits for integer/number fields.
  • minLength, maxLength (number): length limits for text fields.
  • pattern (string): regex string validation for text fields.
  • options (array): for selects, radios, autocomplete; may be array of primitives or objects. If objects, use itemTitle/itemValue to map fields.
  • itemTitle (string): property name to use as the display text for option objects (e.g. name).
  • itemValue (string): property name to use as the option value (e.g. id).
  • multiple (boolean): allow multiple values (for selects/combobox).
  • props (object): props forwarded to the underlying Vuetify component (e.g., placeholder, variant, density, clearable, rows, textarea, menuProps, etc.).
  • messages (object): custom validation messages keyed by validator name (e.g., required, minLength, max, pattern, email, between).
  • custom (function): optional custom validator function. Receives the field value and should return truthy (valid) or falsy (invalid).
  • customMessage (string): message shown when custom validator fails.

Example field (excerpt from the example app):

{
  name: 'site_name',
  type: 'string',
  label: 'Site Name',
  required: true,
  default: 'Affidash',
  minLength: 3,
  maxLength: 100,
  messages: { required: 'Site name is required' },
  props: { placeholder: 'Enter the site name', variant: 'outlined', clearable: true }
}

Another example with options:

{
  name: 'theme',
  type: 'select',
  label: 'Theme',
  required: true,
  options: [{ id: 'light', name: 'Light' }, { id: 'dark', name: 'Dark' }],
  itemTitle: 'name',
  itemValue: 'id',
  props: { placeholder: 'Select a theme' }
}

Building & publishing

Build the library (this produces dist/):

npm run build

Peer dependencies are externalized from the bundles; consumers must install vue, vuetify and @vuelidate/*.

TypeScript

Basic type declarations are included at types/index.d.ts.


If anything in this README is unclear or you'd like a specific schema example added, open an issue or submit a PR.