@quartix/grid

Minimal Configuration

The most basic setup. Just provide data and columns. This example disables the optional toolbar.

ID
Name
Role
Department
Salary
1
Employee 001
User
Sales
₹50,000
2
Employee 002
Editor
HR
₹1,93,000
3
Employee 003
Manager
Finance
₹1,38,000
4
Employee 004
Viewer
Design
₹46,000
5
Employee 005
Admin
Developer
₹1,05,000
6
Employee 006
User
Doctor
₹70,000
7
Employee 007
Editor
Lawyer
₹1,26,000
8
Employee 008
Manager
Architect
₹56,000
9
Employee 009
Viewer
Engineer
₹1,84,000
10
Employee 010
Admin
Teacher
₹96,000
10 Records
tsx
1"use client";
2import { DataGrid, GridColumn, setLicenseKey } from "@quartix/grid";
3import { SMALL_DATA } from "@/data";
4
5setLicenseKey("YOUR_LICENSE_KEY");
6
7export default function MinimalExample() {
8 const columns: GridColumn[] = [
9 { key: "id", header: "ID", width: 60 },
10 { key: "name", header: "Name", flex: 1 },
11 { key: "role", header: "Role", width: 120 },
12 { key: "department", header: "Department", width: 150 },
13 { key: "salary", header: "Salary", width: 120 },
14 ];
15
16 return (
17 <DataGrid
18 data={SMALL_DATA}
19 columns={columns}
20 height={300}
21 showToolbar={false}
22 />
23 );
24}