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

ag-grid-vue3-slotted

v1.1.3

Published

[![npm](https://img.shields.io/npm/v/ag-grid-vue3-slotted)](https://www.npmjs.com/package/ag-grid-vue3-slotted) [![license](https://img.shields.io/npm/l/ag-grid-vue3-slotted)](https://github.com/vad1ym/ag-grid-vue3-slotted/blob/main/LICENSE)

Readme

ag-grid-vue3-slotted

npm license

AG Grid Vue 3 wrapper that lets you render cell content using named Vue slots instead of writing cellRenderer components.

Install

npm install ag-grid-vue3-slotted ag-grid-community ag-grid-vue3
# or
pnpm add ag-grid-vue3-slotted ag-grid-community ag-grid-vue3
# or
yarn add ag-grid-vue3-slotted ag-grid-community ag-grid-vue3

Setup

Register AG Grid modules once in your app entry point (e.g. main.ts):

import { ModuleRegistry, AllCommunityModule } from 'ag-grid-community'

ModuleRegistry.registerModules([AllCommunityModule])

Usage

Instead of importing AgGridVue from ag-grid-vue3, import AgGrid from ag-grid-vue3-slotted — it wraps the original component and adds slot support.

<script setup lang="ts">
import { AgGrid } from 'ag-grid-vue3-slotted'
</script>

<template>
  <AgGrid
    class="ag-theme-alpine"
    style="height: 400px"
    :column-defs="[
      { field: 'name', headerName: 'Name' },
      { field: 'price', headerName: 'Price' },
      { field: 'status', headerName: 'Status' },
      { colId: 'actions', headerName: 'Actions' },
    ]"
    :row-data="[
      { name: 'Widget', price: 9.99, status: 'active' },
      { name: 'Gadget', price: 19.99, status: 'inactive' },
    ]"
  >
    <!-- slot name = col_<field>, receives ICellRendererParams -->
    <template #col_status="{ data }">
      <span :class="data?.status === 'active' ? 'text-green-600' : 'text-red-500'">
        {{ data?.status }}
      </span>
    </template>

    <template #col_price="{ data }">
      <strong>${{ data?.price.toFixed(2) }}</strong>
    </template>

    <!-- slot name = col_<colId> when the column has no field -->
    <template #col_actions="{ data }">
      <button @click="remove(data)">Delete</button>
    </template>
  </AgGrid>
</template>

Slot names follow the pattern col_<field> where <field> matches the field property of the column definition. For columns without a field (e.g. action columns), use col_<colId> where <colId> matches the colId property instead.

Header slots

You can also customize the header label using header_<field> slots. Only the text content of the header is replaced — all AG Grid controls (sort arrow, filter icon, column menu) remain intact.

<!-- slot name = header_<field>, receives IHeaderParams -->
<template #header_status="{ displayName }">
  <em>{{ displayName }} ⚡</em>
</template>

<!-- slot name = header_<colId> when the column has no field -->
<template #header_actions="{ displayName }">
  <em>{{ displayName }}</em>
</template>

Slot names follow the pattern header_<field>, or header_<colId> for columns without a field. The slot receives IHeaderParams from ag-grid-community.

Slot vs explicit renderer priority

If a column definition already has cellRenderer or headerComponent set, it takes priority and the corresponding slot is ignored. Slots are only used when no renderer is defined on the column.

Example

A full working example is available in the example/ directory.

Peer dependencies

| Package | Version | | ------------------- | --------- | | vue | >=3 | | ag-grid-community | >=35 <36| | ag-grid-vue3 | >=35 <36|