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

@dynamicforms/vue-grid

v0.6.2

Published

High-performance virtual-scroll data grid for Vue 3 with sorting, filtering, and row selection.

Readme

@dynamicforms/vue-grid

A (not so) simple, (but hopefully) fast Vue 3 grid component with virtual scrolling, responsive layouts, and built-in sorting and filtering.

Introduction

@dynamicforms/vue-grid provides a single <DfGrid> component that renders large tabular datasets efficiently. Column widths are measured automatically via shadow grids, responsive layouts switch based on container width, and sorting and filtering work out of the box — locally or delegated to a backend.

Features

  • Virtual scrolling via @pdanpdan/virtual-scroll — handles large datasets with minimal DOM overhead
  • CSS grid layout
  • Responsive column layouts — define multiple column sets, the grid activates the best fit based on container width
  • Built-in sorting — local multi-column sort with natural-orderby; external (server-side) sort supported
  • Built-in filtering — local filtering with string/number/boolean/date inputs; external filtering supported
  • Per-row CSS classes via rowClass callback — data-driven styling or conditional highlighting; defaults to zebra striping
  • Flexible cell renderers — plain text, markdown, numbers, dates, links, checkboxes, colors, IP addresses, and more
  • preRender / postRender hooks for adding prefix/suffix content to any cell. Custom cell renderers support
  • Toolbar and footer slots for adding UI above and below the grid
  • Comprehensive events offer all data necessary to correctly identify the exact target of an event. Built-in event handlers as well as support for handling the events separately
  • Overscroll indicator — elastic visual feedback when scrolling past the top or bottom of the content
  • Row selection — long-press or Shift+click a row to enter selection mode; selection, exclusion and non-select modes; a status bar showing the item count with invert and cancel actions and a groupActions slot for batch operations
  • Loading and empty states — a spinner in the summary bar while loading is true, a "No data" indicator when records is empty; both replaceable through the #loading, #no-data and #summary-bar slots
  • Localisable — translateStrings() replaces every string the grid draws itself: loading/no-data, the filter placeholder, the selection status bar, and a null cell's placeholder

Installation

npm install @dynamicforms/vue-grid

The package has no runtime dependencies of its own — everything it needs is declared as a peer dependency. The filter row is built from @dynamicforms/vuetify-inputs controls, which render Vuetify components, so an application that shows the filter row must also have Vuetify installed and registered.

import { DynamicFormsVueGrid } from '@dynamicforms/vue-grid';
import '@dynamicforms/vue-grid/styles.css';

const app = createApp(MyApp);
app.use(DynamicFormsVueGrid, { registerComponents: true });

Basic Usage Example

<template>
  <df-grid
    :columns="columns"
    :records="records"
    key-field="id"
    :show-filter-row="true"
    v-model:sortState="sortState"
  />
</template>

<script setup lang="ts">
import { ref } from 'vue';

import { createColumn, DfGrid } from '@dynamicforms/vue-grid';
import type { SortState } from '@dynamicforms/vue-grid';

const columns = [
  createColumn('id',    'ID',    'int'),
  createColumn('name',  'Name',  'plain', { sortable: true, filterable: true }),
  createColumn('email', 'Email', 'email'),
];

const records = [
  { id: 1, name: 'Alice', email: '[email protected]' },
  { id: 2, name: 'Bob',   email: '[email protected]' },
];

const sortState = ref<SortState>([]);
</script>

Card layout CSS

The grid measures column widths and publishes them on the container as the --grid-template-columns custom property; every rendered row applies them with grid-template-columns: var(--grid-template-columns) !important. The card itself is a plain div.df-grid.card holding one div.df-grid.cell per column, so display: grid and a base track list come from your own stylesheet:

.df-grid.card {
  display:               grid;
  grid-template-columns: minmax(2em, 4em) 1fr 1fr;
  gap:                   0.25em;
}

Each cell carries its column's fieldName as a CSS class, plus the column's cssClass when one is set, so individual columns can be placed and styled by name.

TypeScript Support

The library is written in TypeScript and provides full type definitions for all props, emits, column definitions, sort/filter state, and renderer options.

License

MIT