remirror/remirror

View on GitHub
docs/extensions/tables-extension.mdx

Summary

Maintainability
Test Coverage
---
hide_title: true
title: 'TableExtension'
---

import Basic from '../../website/extension-examples/extension-tables/basic';

# `TableExtension`

## Summary

Add simple tables to the editor. This extension uses [Prosemirror tables](https://github.com/ProseMirror/prosemirror-tables) under the hood.

:::info

See [React TableExtension](./react-tables-extension) for more advanced tables.

:::info

## Usage

### Installation

This extension is installed for you when you install the main `remirror` package.

You can use the imports in the following way:

```ts
import { TableExtension } from 'remirror/extensions';
```

The extension is provided by the `@remirror/extension-tables` package.

### Examples

<Basic />

## API

- [TableExtension](../api/extension-tables)