---
title: "Lists and Checklists in Vue 3 Editor"
description: "Give Vue 3 users styled bullet and number lists, checklists that keep their state in v-model HTML, nested items, and indent controls set via :init."
head:
- - meta
- name: robots
content: 'index, follow, max-image-preview:large, max-snippet:-1, max-video-preview:-1'
- - meta
- name: googlebot
content: 'index, follow, max-image-preview:large, max-snippet:-1, max-video-preview:-1'
- - meta
- name: bingbot
content: 'index, follow, max-image-preview:large, max-snippet:-1, max-video-preview:-1'
---
Are you an LLM? You can read better optimized documentation at https://raw.githubusercontent.com/eramitgupta/erag/main/text-editor-vue/docs/lists-and-indentation.md
# Lists, Checklists and Indentation in Vue 3
With `@erag/text-editor-vue`, list controls are toolbar keywords passed through `:init`. They give Vue 3 users bulleted and numbered lists with marker styles, checklists, nesting, and indent and outdent. Because checkbox state is written into the markup, the HTML in your `v-model` ref keeps track of which items are checked.
Headings, fonts, colors, and alignment live on a separate page: [text formatting](./text-formatting.html).
---
## Toolbar Configuration
Add list and indentation controls to your `init.toolbar`:
```vue
```
---
## Detailed Controls
| Control Name | Toolbar Keyword | Result | Shortcut |
| :------------------ | :-------------- | :---------------------------------------- | :------------------------ |
| **Bulleted List** | `bullist` | `` with style menu | Standard toolbar click |
| **Numbered List** | `numlist` | `- Item
` with style menu | Standard toolbar click |
| **Checklist** | `checklist` | Interactive checkbox list | Standard toolbar click |
| **Increase Indent** | `indent` | Indents current line or list item depth | `Tab` (inside list item) |
| **Decrease Indent** | `outdent` | Decreases indentation depth or exits list | `Shift+Tab` (inside list) |
The Decrease Indent and Increase Indent buttons use matching filled format-indent icons. The arrow points left for decrease and right for increase.
In a table cell, `Tab` and `Shift+Tab` move between cells rather than changing indentation, as described in the [table editor](./table-editor.html) guide.
---
## Bulleted and numbered style groups
`bullist` and `numlist` are separate dropdown controls and keep their own list icon. Each dropdown presents a visual preview grid:
- **Bulleted list:** default, circle, disc, and square markers.
- **Numbered list:** decimal, lower alpha, lower Greek, lower Roman, upper alpha, and upper Roman markers.
Selecting a preview creates or updates the current list and applies its `list-style-type`. Arrow keys navigate the preview grid, `Home` and `End` jump to the first or last style, and `Escape` closes it.
---
## Interactive checklists
Add `checklist` to the toolbar and keep the `lists` plugin enabled. The same action is also available through **Insert → Checklist**.
- Clicking the command converts the current unordered list into a checklist.
- Clicking it again inside an active checklist converts the content back to a normal unordered list.
- Every item contains a native checkbox whose checked state is persisted in the editor HTML.
- `Enter` after a non-empty item creates the next checklist item.
- `Enter` on an empty checklist item exits the list and creates a paragraph.
- Checkboxes are non-interactive in disabled and readonly editors.
Checklist HTML uses package-specific data attributes:
```html
```
---
## Tailwind CSS Reset Fix
In projects using Tailwind CSS or CSS resets (such as Tailwind Preflight), standard browser `ul` list discs and `ol` numbers are often stripped globally by reset rules (`list-style: none`).
`@erag/text-editor-vue` solves this issue out of the box by applying package-scoped styles inside `.erag-editor__content`. This guarantees that lists and nested levels render cleanly inside the editor without requiring global application CSS modifications.