Getting started
Get a working <MonkeyTable> in your React app in under five minutes.
Install
npm install @datasketch/monkeytabReact 18 or 19 is required as a peer dependency.
Your first table
import { MonkeyTable } from '@datasketch/monkeytab';
function App() {
return (
<MonkeyTable
columns={[
{ id: 'Name' },
{ id: 'Age', type: 'Number' },
{ id: 'Active', type: 'Boolean' },
]}
rows={[
{ Name: 'Alice', Age: 30, Active: true },
{ Name: 'Bob', Age: 25, Active: false },
]}
onChange={(rows) => console.log('Updated:', rows)}
height="auto"
/>
);
}That's it. You now have an editable table with:
- Click-to-select cells
- Double-click to edit
- Tab and arrow key navigation
- Sort by clicking column headers
- Search and filter via the toolbar
- Add and remove rows
- A working data model with
onChangefor persistence
Next steps
- Column types — what each of the 14 field types does
- Editing — keyboard shortcuts and copy/paste
- Sorting and pagination — server-side and client-side
- Extending — custom renderers, editors, computed functions
- API reference — full props list