tiptap/docs/src/docPages/api/nodes/table-header.md

27 lines
1.0 KiB
Markdown
Raw Normal View History

2021-01-22 07:16:58 +08:00
# TableHeader
2021-01-25 19:04:08 +08:00
[![Version](https://img.shields.io/npm/v/@tiptap/extension-table-header.svg?label=version)](https://www.npmjs.com/package/@tiptap/extension-table-header)
[![Downloads](https://img.shields.io/npm/dm/@tiptap/extension-table-header.svg)](https://npmcharts.com/compare/@tiptap/extension-table-header?minimal=true)
2021-01-22 07:16:58 +08:00
2021-01-25 19:04:08 +08:00
:::warning ⚠️ Preview
Work in progress
2021-01-22 07:16:58 +08:00
:::
2021-01-25 19:04:08 +08:00
## Installation
::: warning Use with Table, TableRow and TableCell
This extension requires the [`Table`](/api/nodes/table), [`TableRow`](/api/nodes/table-row) and [`TableCell`](/api/nodes/table-cell) nodes.
:::
```bash
# with npm
npm install @tiptap/extension-table @tiptap/extension-table-row @tiptap/extension-table-header @tiptap/extension-table-cell
# with Yarn
yarn add @tiptap/extension-table @tiptap/extension-table-row @tiptap/extension-table-header @tiptap/extension-table-cell
```
## Source code
[packages/extension-table-header/](https://github.com/ueberdosis/tiptap-next/blob/main/packages/extension-table-header/)
2021-01-22 07:16:58 +08:00
2021-01-25 19:04:08 +08:00
## Usage
<demo name="Nodes/Table" />