# UndoRedoConfig

> _Since v0.1.1_

Configuration for the undo/redo plugin.

Controls how many edit actions are retained in the history stack.

#### Example

```ts
const grid = document.querySelector('tbw-grid');
grid.plugins = [
  new UndoRedoPlugin({ maxHistorySize: 50 }),
];
```

## Properties

| Property | Type | Description |
| -------- | ---- | ----------- |
| `maxHistorySize?` | <code>number</code> | Maximum number of actions to keep in history. Default: 100 |
