Skip to main content
Vuetify0 Logo
Theme
Mode
Palettes
Accessibility
Vuetify One
Sign in to Vuetify One

Access premium tools across the Vuetify ecosystem — Bin, Play, Studio, and more.

Not a subscriber? See what's included

Kanban

Headless board of movable items in columns. Each column binds its items with v-model. Items move by pointer drag or by keyboard, and every committed move writes the new order back.

Edit
Report a Bug
Issues
Source
Markdown

PreviewRenders elementIntermediateNov 3, 2026

Usage

Each column binds its own array with v-model. Render that column’s items, and set each card’s value to the same entry.

Todo 3
Write the spec
Sketch the layout
Pick a palette
Doing 1
Build the board
Done 1
Kickoff meeting
Press Space or Enter to pick up an item. Use the arrow keys to choose where it goes, Space or Enter to drop it, and Escape to cancel.

Drag a card. To see the insertion line, press Space, then an arrow.

Theme
Mode
Palettes
Accessibility
basic.vue
<script setup lang="ts">
  import { Kanban } from '@vuetify/v0'
  import { ref } from 'vue'

  interface Card {
    id: number
    title: string
  }

  const columns = [
    { id: 'todo', label: 'Todo' },
    { id: 'doing', label: 'Doing' },
    { id: 'done', label: 'Done' },
  ]

  const board = ref<Record<string, Card[]>>({
    todo: [
      { id: 1, title: 'Write the spec' },
      { id: 2, title: 'Sketch the layout' },
      { id: 3, title: 'Pick a palette' },
    ],
    doing: [
      { id: 4, title: 'Build the board' },
    ],
    done: [
      { id: 5, title: 'Kickoff meeting' },
    ],
  })
</script>

<template>
  <div class="flex flex-col gap-3">
    <Kanban.Root class="grid grid-cols-[repeat(auto-fit,minmax(180px,1fr))] gap-3" label="Project board">
      <Kanban.Column
        v-for="column in columns"
        :id="column.id"
        :key="column.id"
        v-slot="{ items }"
        v-model="board[column.id]"
        class="flex flex-col gap-2 rounded-lg border border-divider bg-surface p-2"
        :label="column.label"
      >
        <div class="flex items-center justify-between px-1 text-sm font-semibold">
          {{ column.label }}
          <span class="text-xs font-normal text-on-surface-variant">{{ items.length }}</span>
        </div>

        <Kanban.List class="flex min-h-24 flex-col gap-2 rounded-md p-1 data-[over]:bg-surface-tint data-[target]:bg-surface-tint">
          <Kanban.Item
            v-for="card in items"
            :key="card.id"
            class="cursor-grab touch-none select-none rounded-md border-2 border-divider bg-surface px-3 py-2 text-sm outline-none focus-visible:ring-2 focus-visible:ring-primary data-[state=dragging]:opacity-40 data-[state=grabbed]:border-primary data-[state=grabbed]:ring-2 data-[state=grabbed]:ring-primary data-[drop=before]:border-t-primary data-[drop=after]:border-b-primary"
            :label="card.title"
            :value="card"
          >
            {{ card.title }}
          </Kanban.Item>
        </Kanban.List>
      </Kanban.Column>

      <Kanban.Instructions class="sr-only" />
      <Kanban.LiveRegion class="sr-only" />
    </Kanban.Root>

    <p class="text-xs text-on-surface-variant">
      Drag a card. To see the insertion line, press Space, then an arrow.
    </p>
  </div>
</template>

Kanban.List may only contain Kanban.Item elements. Put headers and counters outside the list. The value on Kanban.Item must be that same array entry (===), and every value on the board must be unique. Put Kanban.Instructions and Kanban.LiveRegion inside the root, visually hidden. Kanban.Root emits move when a drop commits. Arrow keys and Escape do not.

A pointer drag fades the card (data-state="dragging") and tints a list that can take it (data-over). Space or Enter picks the card up (data-state="grabbed"). Arrows then move a target. The column and list get data-target, and the card it would land beside gets data-drop. That insertion line is keyboard only. Add touch-none on the card, or a touch drag loses to page panning.

Anatomy

vue
<script setup lang="ts">
  import { Kanban } from '@vuetify/v0'
</script>

<template>
  <Kanban.Root>
    <Kanban.Column>
      <Kanban.List>
        <Kanban.Item />
      </Kanban.List>
    </Kanban.Column>

    <Kanban.Instructions />

    <Kanban.LiveRegion />
  </Kanban.Root>
</template>
PartRole
Kanban.RootThe board. label names it. Emits move when a drop commits
Kanban.ColumnOne column. v-model is its item array. disabled freezes it. accept refuses cards coming in from other columns
Kanban.ListDrop zone for that column. Its only element children are Kanban.Item
Kanban.ItemOne card. value is the array entry the board tracks
Kanban.InstructionsKeyboard instructions. Each item points at them with aria-describedby
Kanban.LiveRegionAnnounces each move

Examples

Refusing a column

accept on Kanban.Column runs when a card would enter from another column. Return false to refuse it. It must return a boolean, not a Promise. A Promise is treated as a refusal. A reorder inside the column does not call accept.

disabled on a column blocks moves into it, out of it, and within it. disabled on an item pins that card. disabled on the root freezes the board. Arrow keys skip a column that is disabled or that refuses the card. A pointer drop on a refusing column is rejected and announced.

In this board, Doing holds at most two cards, and Shipped is locked.

Backlog
Audit routes
Update deps
Write tests
Doing 1 / 2
Fix login bug
Review
Shipped locked
Release 1.2
Press Space or Enter to pick up an item. Use the arrow keys to choose where it goes, Space or Enter to drop it, and Escape to cancel.

Doing takes at most 2 cards, and Shipped is locked. Pick a card up with Space and press the right arrow. Full or locked columns are skipped.

Theme
Mode
Palettes
Accessibility

Recording a move

@move on Kanban.Root fires once when a drop commits. The payload is { value, from, to, fromIndex, toIndex }. value is the item’s bound value. from and to are column ids. A pointer drop and a keyboard commit emit the same object, whether the card reordered inside one column or changed columns.

Arrow keys only move the preview. Escape cancels it. Tab cancels it and moves focus on. None of those emit move. Listen to move to record history or sync a server.

Open
Login fails on Safari
Typo in footer
Closed
Broken avatar upload
Press Space or Enter to pick up an item. Use the arrow keys to choose where it goes, Space or Enter to drop it, and Escape to cancel.
  1. Move an item to see the event.
Theme
Mode
Palettes
Accessibility

Recipes

Smallest board

vue
<script setup lang="ts">
  import { Kanban } from '@vuetify/v0'
  import { ref } from 'vue'

  const todo = ref([{ id: 1, title: 'Write the spec' }])
  const done = ref([{ id: 2, title: 'Kickoff' }])
</script>

<template>
  <Kanban.Root label="Project board">
    <Kanban.Column id="todo" v-slot="{ items }" v-model="todo" label="Todo">
      <Kanban.List>
        <Kanban.Item v-for="card in items" :key="card.id" :value="card">
          {{ card.title }}
        </Kanban.Item>
      </Kanban.List>
    </Kanban.Column>

    <Kanban.Column id="done" v-slot="{ items }" v-model="done" label="Done">
      <Kanban.List>
        <Kanban.Item v-for="card in items" :key="card.id" :value="card">
          {{ card.title }}
        </Kanban.Item>
      </Kanban.List>
    </Kanban.Column>

    <Kanban.Instructions class="sr-only" />
    <Kanban.LiveRegion class="sr-only" />
  </Kanban.Root>
</template>

Adding and removing cards

The bound arrays are the board. Push, filter, or replace an array and the column updates. That edit does not emit move. The event fires only when a pointer or keyboard drop commits.

ts
todo.value.push({ id: 6, title: 'New card' })
todo.value = todo.value.filter(card => card.id !== 2)

Swimlanes

orientation="vertical" stacks the columns and lays each column’s cards out in a row. Left and Right move within a column. Up and Down move between columns. Lists expose data-orientation for styling.

Accessibility

Moves never require a pointer. Each item is focusable and keyboard-movable, every move is announced through Kanban.LiveRegion, and Kanban.Instructions tells screen-reader users how to start. Render both, visually hidden. Without them, moves still work, and they are silent.

Keyboard

KeyAction
Space / EnterPick up the focused item. When it is picked up, move it to the drop target
ArrowUp / ArrowDownMove the drop target one slot within its column. Between columns when orientation="vertical"
ArrowLeft / ArrowRightMove the drop target to the previous or next column that can take the item, keeping its index when it fits. Within the column when orientation="vertical". Disabled columns, and columns whose accept refuses the item, are skipped. RTL-aware
Home / EndMove the drop target to the start or end of its column
EscapeDiscard the drop target. Nothing moves
TabDiscard the drop target and move focus on

Each target step is announced. Focus follows the item. When a drop renders it in another column, the new element takes focus.

ARIA

PartAttributeValue
Rootrolegroup
Rootaria-labellabel prop, or a locale default
Columnrolegroup
Columnaria-labellabel prop
Listrolelist
Itemrolelistitem
Itemaria-roledescriptionLocale default, draggable item
Itemaria-posinset / aria-setsizePosition within the column
Itemaria-describedbyThe Kanban.Instructions element, when mounted
Itemaria-disabledtrue when the item, its column, or the board is disabled
LiveRegionrole / aria-livestatus / polite

Data Attributes

PartAttributeValues
Rootdata-orientationhorizontal | vertical
Root, Column, List, Itemdata-disabledPresent when disabled
Listdata-overPresent while an accepted pointer drag hovers the list
Column, Listdata-targetPresent while a pending keyboard drop would land here
Listdata-orientationAxis the list’s items flow along
Itemdata-stategrabbed (keyboard) | dragging (pointer) | idle
Itemdata-dropbefore | after. The pending keyboard drop lands on this side of the item. Pointer drags do not set it

FAQ

Discord
Need help? Join our community for support and discussions ↗
Was this page helpful?

© 2016-1970 Vuetify, LLC
Services
Ctrl+/