@open-grid/vue

Vue adapter for Open Grid.
371
Install
npm install @open-grid/vue
Latest Version:0.3.0
Vue:3
License:MIT
Last Updated:Oct 24, 2026
Links: GitHub  ·  npm
Maintainer: fabric0de

@open-grid/vue

Vue adapter for Open Grid.

Use this package when you want Vue bindings for the framework-agnostic core without the optional styled UI.

Install

npm install @open-grid/vue vue

Usage

import { computed } from "vue";
import { createColumnHelper, useGrid, useGridSelector } from "@open-grid/vue";

const column = createColumnHelper<{ id: string; name: string }>();
const options = computed(() => ({
  data: [{ id: "1", name: "Mina" }],
  columns: [column.accessor("name", { header: "Name" })],
  getRowId: (row: { id: string }) => row.id,
}));
const { grid, state, dispose } = useGrid(options);
const { selected: selectedRowCount } = useGridSelector(
  grid,
  (currentGrid) => Object.keys(currentGrid.getState().rowSelection).length,
);

state is a shallow ref updated by core subscriptions; dispose is called automatically inside a Vue effect scope. Use @open-grid/vue-ui for the maintained styled grid.

useGridSelector returns a shallow selected ref and updates it only when the selected value changes. Its subscription is also disposed with the active Vue effect scope, or can be disposed manually through the returned dispose function.

Related Packages

@freegridjs/vue

Vue 3 component for FreeGrid, the fast data grid. Free core; paid features free...

2,855
@youp-grid/vue

Vue adapter for Youp Grid.

5,596 2
@open-grid/vue-ui

Optional styled Vue data grid for Open Grid.

493 0
@moda-grid/vue2

Vue 2.7 adapter for @moda-grid — DataGrid SFC and useGrid composable

2,116 0
@moda-grid/vue

Vue 3 adapter for @moda-grid — DataGrid SFC and useGrid composable

2,055 0

Version History

Version Released Vue License
0.3.0 ^3.4.0 MIT
0.2.0 ^3.4.0 MIT
0.1.0 ^3.4.0 MIT