---
title: "ListItem extension"
description: "Use the List Item extension in Tiptap to add support for the `` tag used in bullet and ordered lists. Learn more in our docs!"
---

> This page is for Tiptap 2.x. [See the latest version of this page.](https://tiptap.dev/docs/editor/extensions/nodes/list-item.md)

# ListItem extension

Use the List Item extension in Tiptap to add support for the `` tag used in bullet and ordered lists. Learn more in our docs!

The ListItem extension adds support for the `<li>` HTML tag. It’s used for bullet lists and ordered lists and can’t really be used without them.

> **Interactive demo:** [ListItem](https://v2--tiptap-embed.netlify.app/preview/Nodes/ListItem)

> **Modify backspace behavior**
>
> If you want to modify the standard behavior of backspace and delete functions for lists, you
> should read about the [ListKeymap](https://tiptap.dev/docs/v2/editor/extensions/functionality/listkeymap.md) extension.

## Install

```bash
npm install @tiptap/extension-list-item
```

This extension requires the [`BulletList`](https://tiptap.dev/docs/v2/editor/extensions/nodes/bullet-list.md) or [`OrderedList`](https://tiptap.dev/docs/v2/editor/extensions/nodes/ordered-list.md) node.

## Settings

### HTMLAttributes

Custom HTML attributes that should be added to the rendered HTML tag.

```js
ListItem.configure({
  HTMLAttributes: {
    class: 'my-custom-class',
  },
})
```

## Keyboard shortcuts

| Command         | Windows/Linux                     | macOS                             |
| --------------- | --------------------------------- | --------------------------------- |
| splitListItem() | <kbd>Enter</kbd>                  | <kbd>Enter</kbd>                  |
| sinkListItem()  | <kbd>Tab</kbd>                    | <kbd>Tab</kbd>                    |
| liftListItem()  | <kbd>Shift</kbd> + <kbd>Tab</kbd> | <kbd>Shift</kbd> + <kbd>Tab</kbd> |

## Source code

[packages/extension-list-item/](https://github.com/ueberdosis/tiptap/blob/main/packages/extension-list-item/)
