Skip to main content
Package: @tiptap/react.

Before we leave

A few things to finish on Friday.

  • Download the train tickets

  • Pack a bag

    • Find the spare camera battery

  • Close the windows

Try it

Check off a task. Place the cursor at the end of a task and press Enter to add another. Press Tab on a task to nest it under the previous one; Shift+Tab brings it back out.

Extensions

TaskList stores the list. TaskItem supplies each checkbox, its checked state, and keyboard behavior. Enable nested to allow tasks inside tasks.
task-list.tsx

Keyboard

Checkboxes have accessible labels taken from their task text. Changes remain in this example until you refresh. Task list documentation · Task item documentation