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

@dazzadev/vuetify-datatable

v1.0.2

Published

Reusable server-side DataTable component for Vuetify 3

Downloads

366

Readme

@dazzadev/vuetify-datatable

Reusable server-side DataTable component for Vuetify 3. Includes action buttons (view, edit, delete), configurable icons, and a built-in delete confirmation dialog.

Installation

npm install @dazzadev/vuetify-datatable

Setup

Register globally (recommended)

// main.ts
import { createApp } from "vue";
import VuetifyDatatable from "@dazzadev/vuetify-datatable";

const app = createApp(App);
app.use(VuetifyDatatable);

Or import individually

import { DataTable } from "@dazzadev/vuetify-datatable";

Basic Usage

<template>
  <DataTable
    :headers="headers"
    :items="items"
    :loading="loading"
    :total-items="totalItems"
    :search="search"
    @onLoadData="loadData"
    @editItem="editItem"
    @deleteItem="deleteItem"
  />
</template>

Icon Configuration

Icons can be configured at 4 levels of priority (highest to lowest):

1. Slots (full control per instance)

<DataTable :headers="headers" :items="items">
    <template #view-icon>
        <MyCustomIcon />
    </template>
    <template #edit-icon>
        <img src="/icons/edit.svg" width="20" />
    </template>
    <template #delete-icon>
        <i class="fa-solid fa-trash"></i>
    </template>
</DataTable>

2. Props (string override per instance)

<DataTable
  view-icon="mdi-magnify"
  edit-icon="mdi-square-edit-outline"
  delete-icon="mdi-delete"
/>

3. Global plugin config (configure once, applies everywhere)

// main.ts
import { createDataTableConfig } from "@dazzadev/vuetify-datatable";
import { IconEye, IconPencil, IconTrash } from "@tabler/icons-vue";

app.use(
  createDataTableConfig({
    icons: {
      view: IconEye,
      edit: IconPencil,
      delete: IconTrash,
    },
    iconProps: { "stroke-width": 1.5 },
  }),
);

This works with any icon library: Tabler, FontAwesome, Heroicons, or any Vue component.

4. MDI defaults (no config needed)

If no configuration is provided, the component uses Material Design Icons (included with Vuetify):

  • View: mdi-eye-outline
  • Edit: mdi-pencil-outline
  • Delete: mdi-trash-can-outline

Props

| Prop | Type | Default | Description | | ------------------------------ | --------------- | -------------------------- | -------------------------------------- | | headers | TableHeader[] | [] | Table column headers | | items | T[] | [] | Table row data | | loading | boolean | false | Show loading state | | totalItems | number | 0 | Total items for server-side pagination | | itemsPerPage | number | 10 | Items per page | | search | string | — | Search query | | itemValue | string | 'id' | Unique item identifier key | | tableClass | string | 'border rounded-md mt-5' | CSS class for the table | | showExpand | boolean | false | Show expandable rows | | showViewButton | boolean | false | Show view action button | | showEditButton | boolean | true | Show edit action button | | showDeleteButton | boolean | true | Show delete action button | | viewButtonText | string | — | View button tooltip text | | editButtonText | string | — | Edit button tooltip text | | deleteButtonText | string | — | Delete button tooltip text | | deleteModalTitle | string | — | Delete confirmation modal title | | deleteModalMessage | string | — | Delete confirmation modal message | | deleteModalConfirmButtonText | string | — | Confirm button text | | deleteModalCancelButtonText | string | — | Cancel button text | | viewIcon | string | — | View icon name override | | editIcon | string | — | Edit icon name override | | deleteIcon | string | — | Delete icon name override |

Events

| Event | Payload | Description | | ------------ | ---------------- | ------------------------------------------------ | | onLoadData | LoadDataParams | Triggered on pagination, sort, or search changes | | editItem | T | Triggered when edit button is clicked | | deleteItem | T | Triggered when delete is confirmed | | viewItem | T | Triggered when view button is clicked |

Slots

| Slot | Description | | ------------------------ | ------------------------------------------ | | item.{key} | Custom render for any column by header key | | expanded-row | Content for expandable rows | | item.data-table-expand | Custom expand toggle button | | before-actions | Content before action buttons | | after-actions | Content after action buttons | | view-icon | Custom view icon | | edit-icon | Custom edit icon | | delete-icon | Custom delete icon | | item.tfoot | Table footer content |

Peer Dependencies

  • vue >= 3.3
  • vuetify >= 3.0

License

MIT