This repository was archived by the owner on Jan 6, 2025. It is now read-only.

Description
Describe the bug
Attempting to use VSCodeDataGrid from a react component, specifying the data using rowsData doesn't apparently work.
To reproduce
export default function Example() {
const rowsData = [
{ ColumnKey1: "Cell Data", ColumnKey2: "Cell Data", ColumnKey3: "Cell Data", ColumnKey4: "Cell Data" },
{ ColumnKey1: "Cell Data", ColumnKey2: "Cell Data", ColumnKey3: "Cell Data", ColumnKey4: "Cell Data" },
{ ColumnKey1: "Cell Data", ColumnKey2: "Cell Data", ColumnKey3: "Cell Data", ColumnKey4: "Cell Data" },
];
const columnDefinitions = [
{ columnDataKey: "ColumnKey1", title: "A Custom Header Title" },
{ columnDataKey: "ColumnKey2", title: "Another Custom Title" },
{ columnDataKey: "ColumnKey3", title: "Title Is Custom" },
{ columnDataKey: "ColumnKey4", title: "Custom Title" },
];
return (
<VSCodeDataGrid rowsData={rowsData} columnDefinitions={columnDefinitions}></VSCodeDataGrid>
);
}
Expected behavior
This is the example taken from the documentation, and I'm expecting rows and cells to render
Current behavior
Nothing.
Screenshots
Looking at the browser debug tools, I can see this:

The "undefined" tags appear to be where the rows are supposed to be
Desktop (please complete the following information):
- OS Version: Windows 10; Chrome
- Toolkit Version: 1.2.1
Additional context