Dados e tabelas

VKanbanBoard

Componente4 exemplos8 props

Quadro Kanban com cards ricos (tags, código, prioridade, prazo, checklist, responsável), drag-and-drop nativo e alternativa por teclado (**Alt + ←/→** muda de coluna, **Alt + ↑/↓** reordena) com anúncio em live region. Controlado via `v-model:columns`; o helper puro `moveKanbanItem` também é exportado. Slot `card` substitui o conteúdo do card.

Importação
<script setup lang="ts">
import { VKanbanBoard } from 'vueui-nova-kit'
</script>

Uso

Exemplo
<VKanbanBoard v-model:columns="columns" @add="openNewTask" />

Playground

Os controles abaixo são gerados a partir das props declaradas em VKanbanBoard.types.ts; o código acompanha cada mudança.

Exemplos

Variantes, tamanhos e estados, extraídos das stories da biblioteca.

Default

Variação Padrão. Arraste cards entre colunas ou foque um card e use Alt + setas.

Ver código
vue
<script setup lang="ts">
import { ref } from 'vue'
import { VKanbanBoard } from 'vueui-nova-kit'

const args = {
  columns: [
    {
      id: 'backlog',
      title: 'Backlog',
      icon: {
        width: 24,
        height: 24,
        body: '<path fill=\'none\' stroke=\'currentColor\' stroke-linecap=\'round\' stroke-linejoin=\'round\' stroke-width=\'2\' d=\'M21.8769 10.4357C22.041 11.4721 22.041 12.5279 21.8769 13.5643M20.0902 17.8778C19.4734 18.7268 18.7268 19.4734 17.8778 20.0902M13.5643 21.8769C12.5279 22.041 11.4721 22.041 10.4357 21.8769M6.12215 20.0902C5.2732 19.4734 4.52663 18.7268 3.90983 17.8778M2.12312 13.5643C1.95896 12.5279 1.95896 11.4721 2.12312 10.4357M3.90983 6.12215C4.52663 5.2732 5.2732 4.52663 6.12215 3.90983M10.4357 2.12312C11.4721 1.95896 12.5279 1.95896 13.5643 2.12312M17.8778 3.90983C18.7268 4.52663 19.4734 5.2732 20.0902 6.12215\'/>'
      },
      items: [
        {
          id: 'WEB-148',
          code: 'WEB-148',
          title: 'Migrate blog to new CMS',
          tags: [
            {
              label: 'Backend',
              color: '#22c55e'
            }
          ],
          priority: 2,
          due: 'Oct 21',
          assignee: {
            initials: 'JC',
            name: 'John Carter'
          }
        },
        {
          id: 'WEB-130',
          code: 'WEB-130',
          title: 'Write homepage copy',
          tags: [
            {
              label: 'Content',
              color: '#ec4899'
            }
          ],
          priority: 1,
          due: 'Oct 11',
          assignee: {
            initials: 'PP',
            name: 'Priya Patel'
          }
        }
      ]
    },
    {
      id: 'todo',
      title: 'To Do',
      icon: {
        width: 24,
        height: 24,
        body: '<path fill=\'none\' stroke=\'currentColor\' stroke-linecap=\'round\' stroke-linejoin=\'round\' stroke-width=\'2\' d=\'M12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2Z\'/>'
      },
      items: [
        {
          id: 'WEB-133',
          code: 'WEB-133',
          title: 'Set up analytics events',
          tags: [
            {
              label: 'Backend',
              color: '#22c55e'
            },
            {
              label: 'Growth',
              color: '#f97316'
            }
          ],
          priority: 2,
          due: 'Oct 13',
          assignee: {
            initials: 'ML'
          }
        },
        {
          id: 'WEB-136',
          code: 'WEB-136',
          title: 'Accessibility audit of templates',
          tags: [
            {
              label: 'QA',
              color: '#14b8a6'
            }
          ],
          priority: 3,
          due: 'Oct 15',
          assignee: {
            initials: 'LF'
          }
        },
        {
          id: 'WEB-121',
          code: 'WEB-121',
          title: 'Review responsive layouts',
          tags: [
            {
              label: 'QA',
              color: '#14b8a6'
            },
            {
              label: 'Design',
              color: '#8b5cf6'
            }
          ],
          priority: 3,
          due: 'Oct 1',
          assignee: {
            initials: 'EW'
          }
        }
      ]
    },
    {
      id: 'progress',
      title: 'In Progress',
      icon: {
        width: 24,
        height: 24,
        body: '<g fill=\'none\' stroke=\'currentColor\' stroke-linecap=\'round\' stroke-linejoin=\'round\' stroke-width=\'2\'><path d=\'M21.8769 10.4357C22.041 11.4721 22.041 12.5279 21.8769 13.5643M20.0902 17.8778C19.4734 18.7268 18.7268 19.4734 17.8778 20.0902M13.5643 21.8769C12.5279 22.041 11.4721 22.041 10.4357 21.8769M6.12215 20.0902C5.2732 19.4734 4.52663 18.7268 3.90983 17.8778M2.12312 13.5643C1.95896 12.5279 1.95896 11.4721 2.12312 10.4357M3.90983 6.12215C4.52663 5.2732 5.2732 4.52663 6.12215 3.90983M10.4357 2.12312C11.4721 1.95896 12.5279 1.95896 13.5643 2.12312M17.8778 3.90983C18.7268 4.52663 19.4734 5.2732 20.0902 6.12215\'/><path d=\'M12 6C15.3138 6 18 8.6862 18 12C18 15.3138 15.3138 18 12 18Z\'/></g>'
      },
      color: 'var(--v-color-warning-base)',
      items: [
        {
          id: 'WEB-112',
          code: 'WEB-112',
          title: 'Finalize navigation',
          tags: [
            {
              label: 'Design',
              color: '#8b5cf6'
            },
            {
              label: 'Frontend',
              color: '#3b82f6'
            }
          ],
          priority: 3,
          progress: {
            done: 1,
            total: 3
          },
          due: 'Today',
          dueTone: 'warning',
          assignee: {
            initials: 'SC'
          }
        },
        {
          id: 'WEB-115',
          code: 'WEB-115',
          title: 'Design responsive nav',
          tags: [
            {
              label: 'Design',
              color: '#8b5cf6'
            }
          ],
          priority: 2,
          progress: {
            done: 1,
            total: 2
          },
          due: 'Sat',
          assignee: {
            initials: 'AM'
          }
        },
        {
          id: 'WEB-127',
          code: 'WEB-127',
          title: 'Design mobile onboarding',
          tags: [
            {
              label: 'Design',
              color: '#8b5cf6'
            }
          ],
          priority: 3,
          progress: {
            done: 1,
            total: 3
          },
          due: 'Yesterday',
          dueTone: 'danger',
          assignee: {
            initials: 'EW'
          }
        }
      ]
    },
    {
      id: 'done',
      title: 'Done',
      icon: {
        width: 24,
        height: 24,
        body: '<path fill=\'currentColor\' fill-rule=\'evenodd\' d=\'M12 1C18.0751 1 23 5.92487 23 12C23 18.0751 18.0751 23 12 23C5.92487 23 1 18.0751 1 12C1 5.92487 5.92487 1 12 1ZM17.1305 7.87822C16.6764 7.47461 15.9818 7.51547 15.5782 7.96953L10.5326 13.6436L8.42178 11.2695C8.01817 10.8155 7.32359 10.7746 6.86953 11.1782C6.41547 11.5818 6.37461 12.2764 6.77822 12.7305L9.71084 16.0305C9.91958 16.2653 10.2195 16.4 10.5337 16.4C10.8478 16.3999 11.1468 16.2652 11.3555 16.0305L17.2218 9.43047C17.6254 8.97641 17.5845 8.28183 17.1305 7.87822Z\' clip-rule=\'evenodd\'/>'
      },
      color: 'var(--v-color-success-base)',
      items: [
        {
          id: 'WEB-101',
          code: 'WEB-101',
          title: 'Kickoff with stakeholders',
          tags: [
            {
              label: 'Growth',
              color: '#f97316'
            }
          ],
          priority: 1,
          due: 'Sep 2'
        }
      ]
    }
  ],
  draggable: true,
  addable: true,
  addLabel: 'Add task',
  size: 'md',
  ariaLabel: 'Product Launch board'
}
const columns = ref([
  {
    id: 'backlog',
    title: 'Backlog',
    icon: {
      width: 24,
      height: 24,
      body: '<path fill=\'none\' stroke=\'currentColor\' stroke-linecap=\'round\' stroke-linejoin=\'round\' stroke-width=\'2\' d=\'M21.8769 10.4357C22.041 11.4721 22.041 12.5279 21.8769 13.5643M20.0902 17.8778C19.4734 18.7268 18.7268 19.4734 17.8778 20.0902M13.5643 21.8769C12.5279 22.041 11.4721 22.041 10.4357 21.8769M6.12215 20.0902C5.2732 19.4734 4.52663 18.7268 3.90983 17.8778M2.12312 13.5643C1.95896 12.5279 1.95896 11.4721 2.12312 10.4357M3.90983 6.12215C4.52663 5.2732 5.2732 4.52663 6.12215 3.90983M10.4357 2.12312C11.4721 1.95896 12.5279 1.95896 13.5643 2.12312M17.8778 3.90983C18.7268 4.52663 19.4734 5.2732 20.0902 6.12215\'/>'
    },
    items: [
      {
        id: 'WEB-148',
        code: 'WEB-148',
        title: 'Migrate blog to new CMS',
        tags: [
          {
            label: 'Backend',
            color: '#22c55e'
          }
        ],
        priority: 2,
        due: 'Oct 21',
        assignee: {
          initials: 'JC',
          name: 'John Carter'
        }
      },
      {
        id: 'WEB-130',
        code: 'WEB-130',
        title: 'Write homepage copy',
        tags: [
          {
            label: 'Content',
            color: '#ec4899'
          }
        ],
        priority: 1,
        due: 'Oct 11',
        assignee: {
          initials: 'PP',
          name: 'Priya Patel'
        }
      }
    ]
  },
  {
    id: 'todo',
    title: 'To Do',
    icon: {
      width: 24,
      height: 24,
      body: '<path fill=\'none\' stroke=\'currentColor\' stroke-linecap=\'round\' stroke-linejoin=\'round\' stroke-width=\'2\' d=\'M12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2Z\'/>'
    },
    items: [
      {
        id: 'WEB-133',
        code: 'WEB-133',
        title: 'Set up analytics events',
        tags: [
          {
            label: 'Backend',
            color: '#22c55e'
          },
          {
            label: 'Growth',
            color: '#f97316'
          }
        ],
        priority: 2,
        due: 'Oct 13',
        assignee: {
          initials: 'ML'
        }
      },
      {
        id: 'WEB-136',
        code: 'WEB-136',
        title: 'Accessibility audit of templates',
        tags: [
          {
            label: 'QA',
            color: '#14b8a6'
          }
        ],
        priority: 3,
        due: 'Oct 15',
        assignee: {
          initials: 'LF'
        }
      },
      {
        id: 'WEB-121',
        code: 'WEB-121',
        title: 'Review responsive layouts',
        tags: [
          {
            label: 'QA',
            color: '#14b8a6'
          },
          {
            label: 'Design',
            color: '#8b5cf6'
          }
        ],
        priority: 3,
        due: 'Oct 1',
        assignee: {
          initials: 'EW'
        }
      }
    ]
  },
  {
    id: 'progress',
    title: 'In Progress',
    icon: {
      width: 24,
      height: 24,
      body: '<g fill=\'none\' stroke=\'currentColor\' stroke-linecap=\'round\' stroke-linejoin=\'round\' stroke-width=\'2\'><path d=\'M21.8769 10.4357C22.041 11.4721 22.041 12.5279 21.8769 13.5643M20.0902 17.8778C19.4734 18.7268 18.7268 19.4734 17.8778 20.0902M13.5643 21.8769C12.5279 22.041 11.4721 22.041 10.4357 21.8769M6.12215 20.0902C5.2732 19.4734 4.52663 18.7268 3.90983 17.8778M2.12312 13.5643C1.95896 12.5279 1.95896 11.4721 2.12312 10.4357M3.90983 6.12215C4.52663 5.2732 5.2732 4.52663 6.12215 3.90983M10.4357 2.12312C11.4721 1.95896 12.5279 1.95896 13.5643 2.12312M17.8778 3.90983C18.7268 4.52663 19.4734 5.2732 20.0902 6.12215\'/><path d=\'M12 6C15.3138 6 18 8.6862 18 12C18 15.3138 15.3138 18 12 18Z\'/></g>'
    },
    color: 'var(--v-color-warning-base)',
    items: [
      {
        id: 'WEB-112',
        code: 'WEB-112',
        title: 'Finalize navigation',
        tags: [
          {
            label: 'Design',
            color: '#8b5cf6'
          },
          {
            label: 'Frontend',
            color: '#3b82f6'
          }
        ],
        priority: 3,
        progress: {
          done: 1,
          total: 3
        },
        due: 'Today',
        dueTone: 'warning',
        assignee: {
          initials: 'SC'
        }
      },
      {
        id: 'WEB-115',
        code: 'WEB-115',
        title: 'Design responsive nav',
        tags: [
          {
            label: 'Design',
            color: '#8b5cf6'
          }
        ],
        priority: 2,
        progress: {
          done: 1,
          total: 2
        },
        due: 'Sat',
        assignee: {
          initials: 'AM'
        }
      },
      {
        id: 'WEB-127',
        code: 'WEB-127',
        title: 'Design mobile onboarding',
        tags: [
          {
            label: 'Design',
            color: '#8b5cf6'
          }
        ],
        priority: 3,
        progress: {
          done: 1,
          total: 3
        },
        due: 'Yesterday',
        dueTone: 'danger',
        assignee: {
          initials: 'EW'
        }
      }
    ]
  },
  {
    id: 'done',
    title: 'Done',
    icon: {
      width: 24,
      height: 24,
      body: '<path fill=\'currentColor\' fill-rule=\'evenodd\' d=\'M12 1C18.0751 1 23 5.92487 23 12C23 18.0751 18.0751 23 12 23C5.92487 23 1 18.0751 1 12C1 5.92487 5.92487 1 12 1ZM17.1305 7.87822C16.6764 7.47461 15.9818 7.51547 15.5782 7.96953L10.5326 13.6436L8.42178 11.2695C8.01817 10.8155 7.32359 10.7746 6.86953 11.1782C6.41547 11.5818 6.37461 12.2764 6.77822 12.7305L9.71084 16.0305C9.91958 16.2653 10.2195 16.4 10.5337 16.4C10.8478 16.3999 11.1468 16.2652 11.3555 16.0305L17.2218 9.43047C17.6254 8.97641 17.5845 8.28183 17.1305 7.87822Z\' clip-rule=\'evenodd\'/>'
    },
    color: 'var(--v-color-success-base)',
    items: [
      {
        id: 'WEB-101',
        code: 'WEB-101',
        title: 'Kickoff with stakeholders',
        tags: [
          {
            label: 'Growth',
            color: '#f97316'
          }
        ],
        priority: 1,
        due: 'Sep 2'
      }
    ]
  }
])
const log = ref('')
</script>

<template>
  <div>
        <VKanbanBoard v-bind="args" v-model:columns="columns" @move="(m) => (log = m.itemId + ' → ' + m.to + ' #' + (m.index + 1))" />
        <p style="margin-top:8px;font:12px var(--v-font-family-sans);color:var(--v-color-text-muted)">Último movimento: {{ log || '—' }}</p>
      </div>
</template>

Compact

Variação Compacta sem ações de adicionar.

Ver código
vue
<script setup lang="ts">
import { ref } from 'vue'
import { VKanbanBoard } from 'vueui-nova-kit'

const args = {
  columns: [
    {
      id: 'backlog',
      title: 'Backlog',
      icon: {
        width: 24,
        height: 24,
        body: '<path fill=\'none\' stroke=\'currentColor\' stroke-linecap=\'round\' stroke-linejoin=\'round\' stroke-width=\'2\' d=\'M21.8769 10.4357C22.041 11.4721 22.041 12.5279 21.8769 13.5643M20.0902 17.8778C19.4734 18.7268 18.7268 19.4734 17.8778 20.0902M13.5643 21.8769C12.5279 22.041 11.4721 22.041 10.4357 21.8769M6.12215 20.0902C5.2732 19.4734 4.52663 18.7268 3.90983 17.8778M2.12312 13.5643C1.95896 12.5279 1.95896 11.4721 2.12312 10.4357M3.90983 6.12215C4.52663 5.2732 5.2732 4.52663 6.12215 3.90983M10.4357 2.12312C11.4721 1.95896 12.5279 1.95896 13.5643 2.12312M17.8778 3.90983C18.7268 4.52663 19.4734 5.2732 20.0902 6.12215\'/>'
      },
      items: [
        {
          id: 'WEB-148',
          code: 'WEB-148',
          title: 'Migrate blog to new CMS',
          tags: [
            {
              label: 'Backend',
              color: '#22c55e'
            }
          ],
          priority: 2,
          due: 'Oct 21',
          assignee: {
            initials: 'JC',
            name: 'John Carter'
          }
        },
        {
          id: 'WEB-130',
          code: 'WEB-130',
          title: 'Write homepage copy',
          tags: [
            {
              label: 'Content',
              color: '#ec4899'
            }
          ],
          priority: 1,
          due: 'Oct 11',
          assignee: {
            initials: 'PP',
            name: 'Priya Patel'
          }
        }
      ]
    },
    {
      id: 'todo',
      title: 'To Do',
      icon: {
        width: 24,
        height: 24,
        body: '<path fill=\'none\' stroke=\'currentColor\' stroke-linecap=\'round\' stroke-linejoin=\'round\' stroke-width=\'2\' d=\'M12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2Z\'/>'
      },
      items: [
        {
          id: 'WEB-133',
          code: 'WEB-133',
          title: 'Set up analytics events',
          tags: [
            {
              label: 'Backend',
              color: '#22c55e'
            },
            {
              label: 'Growth',
              color: '#f97316'
            }
          ],
          priority: 2,
          due: 'Oct 13',
          assignee: {
            initials: 'ML'
          }
        },
        {
          id: 'WEB-136',
          code: 'WEB-136',
          title: 'Accessibility audit of templates',
          tags: [
            {
              label: 'QA',
              color: '#14b8a6'
            }
          ],
          priority: 3,
          due: 'Oct 15',
          assignee: {
            initials: 'LF'
          }
        },
        {
          id: 'WEB-121',
          code: 'WEB-121',
          title: 'Review responsive layouts',
          tags: [
            {
              label: 'QA',
              color: '#14b8a6'
            },
            {
              label: 'Design',
              color: '#8b5cf6'
            }
          ],
          priority: 3,
          due: 'Oct 1',
          assignee: {
            initials: 'EW'
          }
        }
      ]
    },
    {
      id: 'progress',
      title: 'In Progress',
      icon: {
        width: 24,
        height: 24,
        body: '<g fill=\'none\' stroke=\'currentColor\' stroke-linecap=\'round\' stroke-linejoin=\'round\' stroke-width=\'2\'><path d=\'M21.8769 10.4357C22.041 11.4721 22.041 12.5279 21.8769 13.5643M20.0902 17.8778C19.4734 18.7268 18.7268 19.4734 17.8778 20.0902M13.5643 21.8769C12.5279 22.041 11.4721 22.041 10.4357 21.8769M6.12215 20.0902C5.2732 19.4734 4.52663 18.7268 3.90983 17.8778M2.12312 13.5643C1.95896 12.5279 1.95896 11.4721 2.12312 10.4357M3.90983 6.12215C4.52663 5.2732 5.2732 4.52663 6.12215 3.90983M10.4357 2.12312C11.4721 1.95896 12.5279 1.95896 13.5643 2.12312M17.8778 3.90983C18.7268 4.52663 19.4734 5.2732 20.0902 6.12215\'/><path d=\'M12 6C15.3138 6 18 8.6862 18 12C18 15.3138 15.3138 18 12 18Z\'/></g>'
      },
      color: 'var(--v-color-warning-base)',
      items: [
        {
          id: 'WEB-112',
          code: 'WEB-112',
          title: 'Finalize navigation',
          tags: [
            {
              label: 'Design',
              color: '#8b5cf6'
            },
            {
              label: 'Frontend',
              color: '#3b82f6'
            }
          ],
          priority: 3,
          progress: {
            done: 1,
            total: 3
          },
          due: 'Today',
          dueTone: 'warning',
          assignee: {
            initials: 'SC'
          }
        },
        {
          id: 'WEB-115',
          code: 'WEB-115',
          title: 'Design responsive nav',
          tags: [
            {
              label: 'Design',
              color: '#8b5cf6'
            }
          ],
          priority: 2,
          progress: {
            done: 1,
            total: 2
          },
          due: 'Sat',
          assignee: {
            initials: 'AM'
          }
        },
        {
          id: 'WEB-127',
          code: 'WEB-127',
          title: 'Design mobile onboarding',
          tags: [
            {
              label: 'Design',
              color: '#8b5cf6'
            }
          ],
          priority: 3,
          progress: {
            done: 1,
            total: 3
          },
          due: 'Yesterday',
          dueTone: 'danger',
          assignee: {
            initials: 'EW'
          }
        }
      ]
    },
    {
      id: 'done',
      title: 'Done',
      icon: {
        width: 24,
        height: 24,
        body: '<path fill=\'currentColor\' fill-rule=\'evenodd\' d=\'M12 1C18.0751 1 23 5.92487 23 12C23 18.0751 18.0751 23 12 23C5.92487 23 1 18.0751 1 12C1 5.92487 5.92487 1 12 1ZM17.1305 7.87822C16.6764 7.47461 15.9818 7.51547 15.5782 7.96953L10.5326 13.6436L8.42178 11.2695C8.01817 10.8155 7.32359 10.7746 6.86953 11.1782C6.41547 11.5818 6.37461 12.2764 6.77822 12.7305L9.71084 16.0305C9.91958 16.2653 10.2195 16.4 10.5337 16.4C10.8478 16.3999 11.1468 16.2652 11.3555 16.0305L17.2218 9.43047C17.6254 8.97641 17.5845 8.28183 17.1305 7.87822Z\' clip-rule=\'evenodd\'/>'
      },
      color: 'var(--v-color-success-base)',
      items: [
        {
          id: 'WEB-101',
          code: 'WEB-101',
          title: 'Kickoff with stakeholders',
          tags: [
            {
              label: 'Growth',
              color: '#f97316'
            }
          ],
          priority: 1,
          due: 'Sep 2'
        }
      ]
    }
  ],
  draggable: true,
  addable: false,
  addLabel: 'Add task',
  size: 'sm',
  ariaLabel: 'Product Launch board'
}
const columns = ref([
  {
    id: 'backlog',
    title: 'Backlog',
    icon: {
      width: 24,
      height: 24,
      body: '<path fill=\'none\' stroke=\'currentColor\' stroke-linecap=\'round\' stroke-linejoin=\'round\' stroke-width=\'2\' d=\'M21.8769 10.4357C22.041 11.4721 22.041 12.5279 21.8769 13.5643M20.0902 17.8778C19.4734 18.7268 18.7268 19.4734 17.8778 20.0902M13.5643 21.8769C12.5279 22.041 11.4721 22.041 10.4357 21.8769M6.12215 20.0902C5.2732 19.4734 4.52663 18.7268 3.90983 17.8778M2.12312 13.5643C1.95896 12.5279 1.95896 11.4721 2.12312 10.4357M3.90983 6.12215C4.52663 5.2732 5.2732 4.52663 6.12215 3.90983M10.4357 2.12312C11.4721 1.95896 12.5279 1.95896 13.5643 2.12312M17.8778 3.90983C18.7268 4.52663 19.4734 5.2732 20.0902 6.12215\'/>'
    },
    items: [
      {
        id: 'WEB-148',
        code: 'WEB-148',
        title: 'Migrate blog to new CMS',
        tags: [
          {
            label: 'Backend',
            color: '#22c55e'
          }
        ],
        priority: 2,
        due: 'Oct 21',
        assignee: {
          initials: 'JC',
          name: 'John Carter'
        }
      },
      {
        id: 'WEB-130',
        code: 'WEB-130',
        title: 'Write homepage copy',
        tags: [
          {
            label: 'Content',
            color: '#ec4899'
          }
        ],
        priority: 1,
        due: 'Oct 11',
        assignee: {
          initials: 'PP',
          name: 'Priya Patel'
        }
      }
    ]
  },
  {
    id: 'todo',
    title: 'To Do',
    icon: {
      width: 24,
      height: 24,
      body: '<path fill=\'none\' stroke=\'currentColor\' stroke-linecap=\'round\' stroke-linejoin=\'round\' stroke-width=\'2\' d=\'M12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2Z\'/>'
    },
    items: [
      {
        id: 'WEB-133',
        code: 'WEB-133',
        title: 'Set up analytics events',
        tags: [
          {
            label: 'Backend',
            color: '#22c55e'
          },
          {
            label: 'Growth',
            color: '#f97316'
          }
        ],
        priority: 2,
        due: 'Oct 13',
        assignee: {
          initials: 'ML'
        }
      },
      {
        id: 'WEB-136',
        code: 'WEB-136',
        title: 'Accessibility audit of templates',
        tags: [
          {
            label: 'QA',
            color: '#14b8a6'
          }
        ],
        priority: 3,
        due: 'Oct 15',
        assignee: {
          initials: 'LF'
        }
      },
      {
        id: 'WEB-121',
        code: 'WEB-121',
        title: 'Review responsive layouts',
        tags: [
          {
            label: 'QA',
            color: '#14b8a6'
          },
          {
            label: 'Design',
            color: '#8b5cf6'
          }
        ],
        priority: 3,
        due: 'Oct 1',
        assignee: {
          initials: 'EW'
        }
      }
    ]
  },
  {
    id: 'progress',
    title: 'In Progress',
    icon: {
      width: 24,
      height: 24,
      body: '<g fill=\'none\' stroke=\'currentColor\' stroke-linecap=\'round\' stroke-linejoin=\'round\' stroke-width=\'2\'><path d=\'M21.8769 10.4357C22.041 11.4721 22.041 12.5279 21.8769 13.5643M20.0902 17.8778C19.4734 18.7268 18.7268 19.4734 17.8778 20.0902M13.5643 21.8769C12.5279 22.041 11.4721 22.041 10.4357 21.8769M6.12215 20.0902C5.2732 19.4734 4.52663 18.7268 3.90983 17.8778M2.12312 13.5643C1.95896 12.5279 1.95896 11.4721 2.12312 10.4357M3.90983 6.12215C4.52663 5.2732 5.2732 4.52663 6.12215 3.90983M10.4357 2.12312C11.4721 1.95896 12.5279 1.95896 13.5643 2.12312M17.8778 3.90983C18.7268 4.52663 19.4734 5.2732 20.0902 6.12215\'/><path d=\'M12 6C15.3138 6 18 8.6862 18 12C18 15.3138 15.3138 18 12 18Z\'/></g>'
    },
    color: 'var(--v-color-warning-base)',
    items: [
      {
        id: 'WEB-112',
        code: 'WEB-112',
        title: 'Finalize navigation',
        tags: [
          {
            label: 'Design',
            color: '#8b5cf6'
          },
          {
            label: 'Frontend',
            color: '#3b82f6'
          }
        ],
        priority: 3,
        progress: {
          done: 1,
          total: 3
        },
        due: 'Today',
        dueTone: 'warning',
        assignee: {
          initials: 'SC'
        }
      },
      {
        id: 'WEB-115',
        code: 'WEB-115',
        title: 'Design responsive nav',
        tags: [
          {
            label: 'Design',
            color: '#8b5cf6'
          }
        ],
        priority: 2,
        progress: {
          done: 1,
          total: 2
        },
        due: 'Sat',
        assignee: {
          initials: 'AM'
        }
      },
      {
        id: 'WEB-127',
        code: 'WEB-127',
        title: 'Design mobile onboarding',
        tags: [
          {
            label: 'Design',
            color: '#8b5cf6'
          }
        ],
        priority: 3,
        progress: {
          done: 1,
          total: 3
        },
        due: 'Yesterday',
        dueTone: 'danger',
        assignee: {
          initials: 'EW'
        }
      }
    ]
  },
  {
    id: 'done',
    title: 'Done',
    icon: {
      width: 24,
      height: 24,
      body: '<path fill=\'currentColor\' fill-rule=\'evenodd\' d=\'M12 1C18.0751 1 23 5.92487 23 12C23 18.0751 18.0751 23 12 23C5.92487 23 1 18.0751 1 12C1 5.92487 5.92487 1 12 1ZM17.1305 7.87822C16.6764 7.47461 15.9818 7.51547 15.5782 7.96953L10.5326 13.6436L8.42178 11.2695C8.01817 10.8155 7.32359 10.7746 6.86953 11.1782C6.41547 11.5818 6.37461 12.2764 6.77822 12.7305L9.71084 16.0305C9.91958 16.2653 10.2195 16.4 10.5337 16.4C10.8478 16.3999 11.1468 16.2652 11.3555 16.0305L17.2218 9.43047C17.6254 8.97641 17.5845 8.28183 17.1305 7.87822Z\' clip-rule=\'evenodd\'/>'
    },
    color: 'var(--v-color-success-base)',
    items: [
      {
        id: 'WEB-101',
        code: 'WEB-101',
        title: 'Kickoff with stakeholders',
        tags: [
          {
            label: 'Growth',
            color: '#f97316'
          }
        ],
        priority: 1,
        due: 'Sep 2'
      }
    ]
  }
])
const log = ref('')
</script>

<template>
  <div>
        <VKanbanBoard v-bind="args" v-model:columns="columns" @move="(m) => (log = m.itemId + ' → ' + m.to + ' #' + (m.index + 1))" />
        <p style="margin-top:8px;font:12px var(--v-font-family-sans);color:var(--v-color-text-muted)">Último movimento: {{ log || '—' }}</p>
      </div>
</template>

Custom Card

Variação Card customizado via slot card.

Ver código
vue
<script setup lang="ts">
import { ref } from 'vue'
import { VKanbanBoard } from 'vueui-nova-kit'

const args = {
  columns: [
    {
      id: 'backlog',
      title: 'Backlog',
      icon: {
        width: 24,
        height: 24,
        body: '<path fill=\'none\' stroke=\'currentColor\' stroke-linecap=\'round\' stroke-linejoin=\'round\' stroke-width=\'2\' d=\'M21.8769 10.4357C22.041 11.4721 22.041 12.5279 21.8769 13.5643M20.0902 17.8778C19.4734 18.7268 18.7268 19.4734 17.8778 20.0902M13.5643 21.8769C12.5279 22.041 11.4721 22.041 10.4357 21.8769M6.12215 20.0902C5.2732 19.4734 4.52663 18.7268 3.90983 17.8778M2.12312 13.5643C1.95896 12.5279 1.95896 11.4721 2.12312 10.4357M3.90983 6.12215C4.52663 5.2732 5.2732 4.52663 6.12215 3.90983M10.4357 2.12312C11.4721 1.95896 12.5279 1.95896 13.5643 2.12312M17.8778 3.90983C18.7268 4.52663 19.4734 5.2732 20.0902 6.12215\'/>'
      },
      items: [
        {
          id: 'WEB-148',
          code: 'WEB-148',
          title: 'Migrate blog to new CMS',
          tags: [
            {
              label: 'Backend',
              color: '#22c55e'
            }
          ],
          priority: 2,
          due: 'Oct 21',
          assignee: {
            initials: 'JC',
            name: 'John Carter'
          }
        },
        {
          id: 'WEB-130',
          code: 'WEB-130',
          title: 'Write homepage copy',
          tags: [
            {
              label: 'Content',
              color: '#ec4899'
            }
          ],
          priority: 1,
          due: 'Oct 11',
          assignee: {
            initials: 'PP',
            name: 'Priya Patel'
          }
        }
      ]
    },
    {
      id: 'todo',
      title: 'To Do',
      icon: {
        width: 24,
        height: 24,
        body: '<path fill=\'none\' stroke=\'currentColor\' stroke-linecap=\'round\' stroke-linejoin=\'round\' stroke-width=\'2\' d=\'M12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2Z\'/>'
      },
      items: [
        {
          id: 'WEB-133',
          code: 'WEB-133',
          title: 'Set up analytics events',
          tags: [
            {
              label: 'Backend',
              color: '#22c55e'
            },
            {
              label: 'Growth',
              color: '#f97316'
            }
          ],
          priority: 2,
          due: 'Oct 13',
          assignee: {
            initials: 'ML'
          }
        },
        {
          id: 'WEB-136',
          code: 'WEB-136',
          title: 'Accessibility audit of templates',
          tags: [
            {
              label: 'QA',
              color: '#14b8a6'
            }
          ],
          priority: 3,
          due: 'Oct 15',
          assignee: {
            initials: 'LF'
          }
        },
        {
          id: 'WEB-121',
          code: 'WEB-121',
          title: 'Review responsive layouts',
          tags: [
            {
              label: 'QA',
              color: '#14b8a6'
            },
            {
              label: 'Design',
              color: '#8b5cf6'
            }
          ],
          priority: 3,
          due: 'Oct 1',
          assignee: {
            initials: 'EW'
          }
        }
      ]
    },
    {
      id: 'progress',
      title: 'In Progress',
      icon: {
        width: 24,
        height: 24,
        body: '<g fill=\'none\' stroke=\'currentColor\' stroke-linecap=\'round\' stroke-linejoin=\'round\' stroke-width=\'2\'><path d=\'M21.8769 10.4357C22.041 11.4721 22.041 12.5279 21.8769 13.5643M20.0902 17.8778C19.4734 18.7268 18.7268 19.4734 17.8778 20.0902M13.5643 21.8769C12.5279 22.041 11.4721 22.041 10.4357 21.8769M6.12215 20.0902C5.2732 19.4734 4.52663 18.7268 3.90983 17.8778M2.12312 13.5643C1.95896 12.5279 1.95896 11.4721 2.12312 10.4357M3.90983 6.12215C4.52663 5.2732 5.2732 4.52663 6.12215 3.90983M10.4357 2.12312C11.4721 1.95896 12.5279 1.95896 13.5643 2.12312M17.8778 3.90983C18.7268 4.52663 19.4734 5.2732 20.0902 6.12215\'/><path d=\'M12 6C15.3138 6 18 8.6862 18 12C18 15.3138 15.3138 18 12 18Z\'/></g>'
      },
      color: 'var(--v-color-warning-base)',
      items: [
        {
          id: 'WEB-112',
          code: 'WEB-112',
          title: 'Finalize navigation',
          tags: [
            {
              label: 'Design',
              color: '#8b5cf6'
            },
            {
              label: 'Frontend',
              color: '#3b82f6'
            }
          ],
          priority: 3,
          progress: {
            done: 1,
            total: 3
          },
          due: 'Today',
          dueTone: 'warning',
          assignee: {
            initials: 'SC'
          }
        },
        {
          id: 'WEB-115',
          code: 'WEB-115',
          title: 'Design responsive nav',
          tags: [
            {
              label: 'Design',
              color: '#8b5cf6'
            }
          ],
          priority: 2,
          progress: {
            done: 1,
            total: 2
          },
          due: 'Sat',
          assignee: {
            initials: 'AM'
          }
        },
        {
          id: 'WEB-127',
          code: 'WEB-127',
          title: 'Design mobile onboarding',
          tags: [
            {
              label: 'Design',
              color: '#8b5cf6'
            }
          ],
          priority: 3,
          progress: {
            done: 1,
            total: 3
          },
          due: 'Yesterday',
          dueTone: 'danger',
          assignee: {
            initials: 'EW'
          }
        }
      ]
    },
    {
      id: 'done',
      title: 'Done',
      icon: {
        width: 24,
        height: 24,
        body: '<path fill=\'currentColor\' fill-rule=\'evenodd\' d=\'M12 1C18.0751 1 23 5.92487 23 12C23 18.0751 18.0751 23 12 23C5.92487 23 1 18.0751 1 12C1 5.92487 5.92487 1 12 1ZM17.1305 7.87822C16.6764 7.47461 15.9818 7.51547 15.5782 7.96953L10.5326 13.6436L8.42178 11.2695C8.01817 10.8155 7.32359 10.7746 6.86953 11.1782C6.41547 11.5818 6.37461 12.2764 6.77822 12.7305L9.71084 16.0305C9.91958 16.2653 10.2195 16.4 10.5337 16.4C10.8478 16.3999 11.1468 16.2652 11.3555 16.0305L17.2218 9.43047C17.6254 8.97641 17.5845 8.28183 17.1305 7.87822Z\' clip-rule=\'evenodd\'/>'
      },
      color: 'var(--v-color-success-base)',
      items: [
        {
          id: 'WEB-101',
          code: 'WEB-101',
          title: 'Kickoff with stakeholders',
          tags: [
            {
              label: 'Growth',
              color: '#f97316'
            }
          ],
          priority: 1,
          due: 'Sep 2'
        }
      ]
    }
  ],
  draggable: true,
  addable: true,
  addLabel: 'Add task',
  size: 'md',
  ariaLabel: 'Product Launch board'
}
const columns = ref([
  {
    id: 'backlog',
    title: 'Backlog',
    icon: {
      width: 24,
      height: 24,
      body: '<path fill=\'none\' stroke=\'currentColor\' stroke-linecap=\'round\' stroke-linejoin=\'round\' stroke-width=\'2\' d=\'M21.8769 10.4357C22.041 11.4721 22.041 12.5279 21.8769 13.5643M20.0902 17.8778C19.4734 18.7268 18.7268 19.4734 17.8778 20.0902M13.5643 21.8769C12.5279 22.041 11.4721 22.041 10.4357 21.8769M6.12215 20.0902C5.2732 19.4734 4.52663 18.7268 3.90983 17.8778M2.12312 13.5643C1.95896 12.5279 1.95896 11.4721 2.12312 10.4357M3.90983 6.12215C4.52663 5.2732 5.2732 4.52663 6.12215 3.90983M10.4357 2.12312C11.4721 1.95896 12.5279 1.95896 13.5643 2.12312M17.8778 3.90983C18.7268 4.52663 19.4734 5.2732 20.0902 6.12215\'/>'
    },
    items: [
      {
        id: 'WEB-148',
        code: 'WEB-148',
        title: 'Migrate blog to new CMS',
        tags: [
          {
            label: 'Backend',
            color: '#22c55e'
          }
        ],
        priority: 2,
        due: 'Oct 21',
        assignee: {
          initials: 'JC',
          name: 'John Carter'
        }
      },
      {
        id: 'WEB-130',
        code: 'WEB-130',
        title: 'Write homepage copy',
        tags: [
          {
            label: 'Content',
            color: '#ec4899'
          }
        ],
        priority: 1,
        due: 'Oct 11',
        assignee: {
          initials: 'PP',
          name: 'Priya Patel'
        }
      }
    ]
  },
  {
    id: 'todo',
    title: 'To Do',
    icon: {
      width: 24,
      height: 24,
      body: '<path fill=\'none\' stroke=\'currentColor\' stroke-linecap=\'round\' stroke-linejoin=\'round\' stroke-width=\'2\' d=\'M12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2Z\'/>'
    },
    items: [
      {
        id: 'WEB-133',
        code: 'WEB-133',
        title: 'Set up analytics events',
        tags: [
          {
            label: 'Backend',
            color: '#22c55e'
          },
          {
            label: 'Growth',
            color: '#f97316'
          }
        ],
        priority: 2,
        due: 'Oct 13',
        assignee: {
          initials: 'ML'
        }
      },
      {
        id: 'WEB-136',
        code: 'WEB-136',
        title: 'Accessibility audit of templates',
        tags: [
          {
            label: 'QA',
            color: '#14b8a6'
          }
        ],
        priority: 3,
        due: 'Oct 15',
        assignee: {
          initials: 'LF'
        }
      },
      {
        id: 'WEB-121',
        code: 'WEB-121',
        title: 'Review responsive layouts',
        tags: [
          {
            label: 'QA',
            color: '#14b8a6'
          },
          {
            label: 'Design',
            color: '#8b5cf6'
          }
        ],
        priority: 3,
        due: 'Oct 1',
        assignee: {
          initials: 'EW'
        }
      }
    ]
  },
  {
    id: 'progress',
    title: 'In Progress',
    icon: {
      width: 24,
      height: 24,
      body: '<g fill=\'none\' stroke=\'currentColor\' stroke-linecap=\'round\' stroke-linejoin=\'round\' stroke-width=\'2\'><path d=\'M21.8769 10.4357C22.041 11.4721 22.041 12.5279 21.8769 13.5643M20.0902 17.8778C19.4734 18.7268 18.7268 19.4734 17.8778 20.0902M13.5643 21.8769C12.5279 22.041 11.4721 22.041 10.4357 21.8769M6.12215 20.0902C5.2732 19.4734 4.52663 18.7268 3.90983 17.8778M2.12312 13.5643C1.95896 12.5279 1.95896 11.4721 2.12312 10.4357M3.90983 6.12215C4.52663 5.2732 5.2732 4.52663 6.12215 3.90983M10.4357 2.12312C11.4721 1.95896 12.5279 1.95896 13.5643 2.12312M17.8778 3.90983C18.7268 4.52663 19.4734 5.2732 20.0902 6.12215\'/><path d=\'M12 6C15.3138 6 18 8.6862 18 12C18 15.3138 15.3138 18 12 18Z\'/></g>'
    },
    color: 'var(--v-color-warning-base)',
    items: [
      {
        id: 'WEB-112',
        code: 'WEB-112',
        title: 'Finalize navigation',
        tags: [
          {
            label: 'Design',
            color: '#8b5cf6'
          },
          {
            label: 'Frontend',
            color: '#3b82f6'
          }
        ],
        priority: 3,
        progress: {
          done: 1,
          total: 3
        },
        due: 'Today',
        dueTone: 'warning',
        assignee: {
          initials: 'SC'
        }
      },
      {
        id: 'WEB-115',
        code: 'WEB-115',
        title: 'Design responsive nav',
        tags: [
          {
            label: 'Design',
            color: '#8b5cf6'
          }
        ],
        priority: 2,
        progress: {
          done: 1,
          total: 2
        },
        due: 'Sat',
        assignee: {
          initials: 'AM'
        }
      },
      {
        id: 'WEB-127',
        code: 'WEB-127',
        title: 'Design mobile onboarding',
        tags: [
          {
            label: 'Design',
            color: '#8b5cf6'
          }
        ],
        priority: 3,
        progress: {
          done: 1,
          total: 3
        },
        due: 'Yesterday',
        dueTone: 'danger',
        assignee: {
          initials: 'EW'
        }
      }
    ]
  }
])
</script>

<template>
  <VKanbanBoard v-bind="args" v-model:columns="columns" :addable="false" column-width="15rem">
        <template #card="{ item }">
          <strong style="font-size:13px">{{ item.title }}</strong>
          <span style="font-size:11px;color:var(--v-color-text-muted)">{{ item.code }}</span>
        </template>
      </VKanbanBoard>
</template>

Read Only

Variação Somente leitura. Props: draggable=false.

Ver código
vue
<script setup lang="ts">
import { ref } from 'vue'
import { VKanbanBoard } from 'vueui-nova-kit'

const args = {
  columns: [
    {
      id: 'backlog',
      title: 'Backlog',
      icon: {
        width: 24,
        height: 24,
        body: '<path fill=\'none\' stroke=\'currentColor\' stroke-linecap=\'round\' stroke-linejoin=\'round\' stroke-width=\'2\' d=\'M21.8769 10.4357C22.041 11.4721 22.041 12.5279 21.8769 13.5643M20.0902 17.8778C19.4734 18.7268 18.7268 19.4734 17.8778 20.0902M13.5643 21.8769C12.5279 22.041 11.4721 22.041 10.4357 21.8769M6.12215 20.0902C5.2732 19.4734 4.52663 18.7268 3.90983 17.8778M2.12312 13.5643C1.95896 12.5279 1.95896 11.4721 2.12312 10.4357M3.90983 6.12215C4.52663 5.2732 5.2732 4.52663 6.12215 3.90983M10.4357 2.12312C11.4721 1.95896 12.5279 1.95896 13.5643 2.12312M17.8778 3.90983C18.7268 4.52663 19.4734 5.2732 20.0902 6.12215\'/>'
      },
      items: [
        {
          id: 'WEB-148',
          code: 'WEB-148',
          title: 'Migrate blog to new CMS',
          tags: [
            {
              label: 'Backend',
              color: '#22c55e'
            }
          ],
          priority: 2,
          due: 'Oct 21',
          assignee: {
            initials: 'JC',
            name: 'John Carter'
          }
        },
        {
          id: 'WEB-130',
          code: 'WEB-130',
          title: 'Write homepage copy',
          tags: [
            {
              label: 'Content',
              color: '#ec4899'
            }
          ],
          priority: 1,
          due: 'Oct 11',
          assignee: {
            initials: 'PP',
            name: 'Priya Patel'
          }
        }
      ]
    },
    {
      id: 'todo',
      title: 'To Do',
      icon: {
        width: 24,
        height: 24,
        body: '<path fill=\'none\' stroke=\'currentColor\' stroke-linecap=\'round\' stroke-linejoin=\'round\' stroke-width=\'2\' d=\'M12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2Z\'/>'
      },
      items: [
        {
          id: 'WEB-133',
          code: 'WEB-133',
          title: 'Set up analytics events',
          tags: [
            {
              label: 'Backend',
              color: '#22c55e'
            },
            {
              label: 'Growth',
              color: '#f97316'
            }
          ],
          priority: 2,
          due: 'Oct 13',
          assignee: {
            initials: 'ML'
          }
        },
        {
          id: 'WEB-136',
          code: 'WEB-136',
          title: 'Accessibility audit of templates',
          tags: [
            {
              label: 'QA',
              color: '#14b8a6'
            }
          ],
          priority: 3,
          due: 'Oct 15',
          assignee: {
            initials: 'LF'
          }
        },
        {
          id: 'WEB-121',
          code: 'WEB-121',
          title: 'Review responsive layouts',
          tags: [
            {
              label: 'QA',
              color: '#14b8a6'
            },
            {
              label: 'Design',
              color: '#8b5cf6'
            }
          ],
          priority: 3,
          due: 'Oct 1',
          assignee: {
            initials: 'EW'
          }
        }
      ]
    },
    {
      id: 'progress',
      title: 'In Progress',
      icon: {
        width: 24,
        height: 24,
        body: '<g fill=\'none\' stroke=\'currentColor\' stroke-linecap=\'round\' stroke-linejoin=\'round\' stroke-width=\'2\'><path d=\'M21.8769 10.4357C22.041 11.4721 22.041 12.5279 21.8769 13.5643M20.0902 17.8778C19.4734 18.7268 18.7268 19.4734 17.8778 20.0902M13.5643 21.8769C12.5279 22.041 11.4721 22.041 10.4357 21.8769M6.12215 20.0902C5.2732 19.4734 4.52663 18.7268 3.90983 17.8778M2.12312 13.5643C1.95896 12.5279 1.95896 11.4721 2.12312 10.4357M3.90983 6.12215C4.52663 5.2732 5.2732 4.52663 6.12215 3.90983M10.4357 2.12312C11.4721 1.95896 12.5279 1.95896 13.5643 2.12312M17.8778 3.90983C18.7268 4.52663 19.4734 5.2732 20.0902 6.12215\'/><path d=\'M12 6C15.3138 6 18 8.6862 18 12C18 15.3138 15.3138 18 12 18Z\'/></g>'
      },
      color: 'var(--v-color-warning-base)',
      items: [
        {
          id: 'WEB-112',
          code: 'WEB-112',
          title: 'Finalize navigation',
          tags: [
            {
              label: 'Design',
              color: '#8b5cf6'
            },
            {
              label: 'Frontend',
              color: '#3b82f6'
            }
          ],
          priority: 3,
          progress: {
            done: 1,
            total: 3
          },
          due: 'Today',
          dueTone: 'warning',
          assignee: {
            initials: 'SC'
          }
        },
        {
          id: 'WEB-115',
          code: 'WEB-115',
          title: 'Design responsive nav',
          tags: [
            {
              label: 'Design',
              color: '#8b5cf6'
            }
          ],
          priority: 2,
          progress: {
            done: 1,
            total: 2
          },
          due: 'Sat',
          assignee: {
            initials: 'AM'
          }
        },
        {
          id: 'WEB-127',
          code: 'WEB-127',
          title: 'Design mobile onboarding',
          tags: [
            {
              label: 'Design',
              color: '#8b5cf6'
            }
          ],
          priority: 3,
          progress: {
            done: 1,
            total: 3
          },
          due: 'Yesterday',
          dueTone: 'danger',
          assignee: {
            initials: 'EW'
          }
        }
      ]
    },
    {
      id: 'done',
      title: 'Done',
      icon: {
        width: 24,
        height: 24,
        body: '<path fill=\'currentColor\' fill-rule=\'evenodd\' d=\'M12 1C18.0751 1 23 5.92487 23 12C23 18.0751 18.0751 23 12 23C5.92487 23 1 18.0751 1 12C1 5.92487 5.92487 1 12 1ZM17.1305 7.87822C16.6764 7.47461 15.9818 7.51547 15.5782 7.96953L10.5326 13.6436L8.42178 11.2695C8.01817 10.8155 7.32359 10.7746 6.86953 11.1782C6.41547 11.5818 6.37461 12.2764 6.77822 12.7305L9.71084 16.0305C9.91958 16.2653 10.2195 16.4 10.5337 16.4C10.8478 16.3999 11.1468 16.2652 11.3555 16.0305L17.2218 9.43047C17.6254 8.97641 17.5845 8.28183 17.1305 7.87822Z\' clip-rule=\'evenodd\'/>'
      },
      color: 'var(--v-color-success-base)',
      items: [
        {
          id: 'WEB-101',
          code: 'WEB-101',
          title: 'Kickoff with stakeholders',
          tags: [
            {
              label: 'Growth',
              color: '#f97316'
            }
          ],
          priority: 1,
          due: 'Sep 2'
        }
      ]
    }
  ],
  draggable: false,
  addable: false,
  addLabel: 'Add task',
  size: 'md',
  ariaLabel: 'Product Launch board'
}
const columns = ref([
  {
    id: 'backlog',
    title: 'Backlog',
    icon: {
      width: 24,
      height: 24,
      body: '<path fill=\'none\' stroke=\'currentColor\' stroke-linecap=\'round\' stroke-linejoin=\'round\' stroke-width=\'2\' d=\'M21.8769 10.4357C22.041 11.4721 22.041 12.5279 21.8769 13.5643M20.0902 17.8778C19.4734 18.7268 18.7268 19.4734 17.8778 20.0902M13.5643 21.8769C12.5279 22.041 11.4721 22.041 10.4357 21.8769M6.12215 20.0902C5.2732 19.4734 4.52663 18.7268 3.90983 17.8778M2.12312 13.5643C1.95896 12.5279 1.95896 11.4721 2.12312 10.4357M3.90983 6.12215C4.52663 5.2732 5.2732 4.52663 6.12215 3.90983M10.4357 2.12312C11.4721 1.95896 12.5279 1.95896 13.5643 2.12312M17.8778 3.90983C18.7268 4.52663 19.4734 5.2732 20.0902 6.12215\'/>'
    },
    items: [
      {
        id: 'WEB-148',
        code: 'WEB-148',
        title: 'Migrate blog to new CMS',
        tags: [
          {
            label: 'Backend',
            color: '#22c55e'
          }
        ],
        priority: 2,
        due: 'Oct 21',
        assignee: {
          initials: 'JC',
          name: 'John Carter'
        }
      },
      {
        id: 'WEB-130',
        code: 'WEB-130',
        title: 'Write homepage copy',
        tags: [
          {
            label: 'Content',
            color: '#ec4899'
          }
        ],
        priority: 1,
        due: 'Oct 11',
        assignee: {
          initials: 'PP',
          name: 'Priya Patel'
        }
      }
    ]
  },
  {
    id: 'todo',
    title: 'To Do',
    icon: {
      width: 24,
      height: 24,
      body: '<path fill=\'none\' stroke=\'currentColor\' stroke-linecap=\'round\' stroke-linejoin=\'round\' stroke-width=\'2\' d=\'M12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2Z\'/>'
    },
    items: [
      {
        id: 'WEB-133',
        code: 'WEB-133',
        title: 'Set up analytics events',
        tags: [
          {
            label: 'Backend',
            color: '#22c55e'
          },
          {
            label: 'Growth',
            color: '#f97316'
          }
        ],
        priority: 2,
        due: 'Oct 13',
        assignee: {
          initials: 'ML'
        }
      },
      {
        id: 'WEB-136',
        code: 'WEB-136',
        title: 'Accessibility audit of templates',
        tags: [
          {
            label: 'QA',
            color: '#14b8a6'
          }
        ],
        priority: 3,
        due: 'Oct 15',
        assignee: {
          initials: 'LF'
        }
      },
      {
        id: 'WEB-121',
        code: 'WEB-121',
        title: 'Review responsive layouts',
        tags: [
          {
            label: 'QA',
            color: '#14b8a6'
          },
          {
            label: 'Design',
            color: '#8b5cf6'
          }
        ],
        priority: 3,
        due: 'Oct 1',
        assignee: {
          initials: 'EW'
        }
      }
    ]
  },
  {
    id: 'progress',
    title: 'In Progress',
    icon: {
      width: 24,
      height: 24,
      body: '<g fill=\'none\' stroke=\'currentColor\' stroke-linecap=\'round\' stroke-linejoin=\'round\' stroke-width=\'2\'><path d=\'M21.8769 10.4357C22.041 11.4721 22.041 12.5279 21.8769 13.5643M20.0902 17.8778C19.4734 18.7268 18.7268 19.4734 17.8778 20.0902M13.5643 21.8769C12.5279 22.041 11.4721 22.041 10.4357 21.8769M6.12215 20.0902C5.2732 19.4734 4.52663 18.7268 3.90983 17.8778M2.12312 13.5643C1.95896 12.5279 1.95896 11.4721 2.12312 10.4357M3.90983 6.12215C4.52663 5.2732 5.2732 4.52663 6.12215 3.90983M10.4357 2.12312C11.4721 1.95896 12.5279 1.95896 13.5643 2.12312M17.8778 3.90983C18.7268 4.52663 19.4734 5.2732 20.0902 6.12215\'/><path d=\'M12 6C15.3138 6 18 8.6862 18 12C18 15.3138 15.3138 18 12 18Z\'/></g>'
    },
    color: 'var(--v-color-warning-base)',
    items: [
      {
        id: 'WEB-112',
        code: 'WEB-112',
        title: 'Finalize navigation',
        tags: [
          {
            label: 'Design',
            color: '#8b5cf6'
          },
          {
            label: 'Frontend',
            color: '#3b82f6'
          }
        ],
        priority: 3,
        progress: {
          done: 1,
          total: 3
        },
        due: 'Today',
        dueTone: 'warning',
        assignee: {
          initials: 'SC'
        }
      },
      {
        id: 'WEB-115',
        code: 'WEB-115',
        title: 'Design responsive nav',
        tags: [
          {
            label: 'Design',
            color: '#8b5cf6'
          }
        ],
        priority: 2,
        progress: {
          done: 1,
          total: 2
        },
        due: 'Sat',
        assignee: {
          initials: 'AM'
        }
      },
      {
        id: 'WEB-127',
        code: 'WEB-127',
        title: 'Design mobile onboarding',
        tags: [
          {
            label: 'Design',
            color: '#8b5cf6'
          }
        ],
        priority: 3,
        progress: {
          done: 1,
          total: 3
        },
        due: 'Yesterday',
        dueTone: 'danger',
        assignee: {
          initials: 'EW'
        }
      }
    ]
  },
  {
    id: 'done',
    title: 'Done',
    icon: {
      width: 24,
      height: 24,
      body: '<path fill=\'currentColor\' fill-rule=\'evenodd\' d=\'M12 1C18.0751 1 23 5.92487 23 12C23 18.0751 18.0751 23 12 23C5.92487 23 1 18.0751 1 12C1 5.92487 5.92487 1 12 1ZM17.1305 7.87822C16.6764 7.47461 15.9818 7.51547 15.5782 7.96953L10.5326 13.6436L8.42178 11.2695C8.01817 10.8155 7.32359 10.7746 6.86953 11.1782C6.41547 11.5818 6.37461 12.2764 6.77822 12.7305L9.71084 16.0305C9.91958 16.2653 10.2195 16.4 10.5337 16.4C10.8478 16.3999 11.1468 16.2652 11.3555 16.0305L17.2218 9.43047C17.6254 8.97641 17.5845 8.28183 17.1305 7.87822Z\' clip-rule=\'evenodd\'/>'
    },
    color: 'var(--v-color-success-base)',
    items: [
      {
        id: 'WEB-101',
        code: 'WEB-101',
        title: 'Kickoff with stakeholders',
        tags: [
          {
            label: 'Growth',
            color: '#f97316'
          }
        ],
        priority: 1,
        due: 'Sep 2'
      }
    ]
  }
])
const log = ref('')
</script>

<template>
  <div>
        <VKanbanBoard v-bind="args" v-model:columns="columns" @move="(m) => (log = m.itemId + ' → ' + m.to + ' #' + (m.index + 1))" />
        <p style="margin-top:8px;font:12px var(--v-font-family-sans);color:var(--v-color-text-muted)">Último movimento: {{ log || '—' }}</p>
      </div>
</template>

Props

PropTipoDefaultDescrição
columnsVKanbanColumn[]——
draggablebooleantruePointer drag-and-drop plus Alt+Arrow keyboard moves.
addablebooleantrueShows the "+" header action and the "Add task" footer button.
addLabelstring"Add task"—
sizeVKanbanSize"md"—
columnWidthstring—Fixed column width (CSS length).
ariaLabelstring——
dataTestIdstring——

Events

EventoPayloadDescrição
@update:columnscolumns: VKanbanColumn[]—
@movemove: VKanbanMove—
@addcolumnId: string—
@item-clickitem: VKanbanItem, column: VKanbanColumn—
@column-menucolumnId: string—

Slots

SlotProps do slot
#carditemcolumn

Fonte: src/components/data/VKanbanBoard/VKanbanBoard.vue · tipos: src/components/data/VKanbanBoard/VKanbanBoard.types.ts