Workload lanes — Kanban block

Pro

kanban-workload-lanes · for app, projects, pipeline pages

Workload lanes

Stages crossed with the first person field, for reviewing the team’s own workload by responsible person.

Documentation

Installation

One command copies the block into your project with the shadcn CLI (the registry is set once: Installation).

pnpm dlx shadcn-vue@latest add @trame/kanban-workload-lanes

Usage

Its demo data, shortened (Using blocks).

<script setup lang="ts">
import KanbanWorkloadLanes from '@/components/trame/blocks/kanban/kanban-workload-lanes.vue'

const props = {
title: "Orders to pack",
count: 7,
columns: [
{
id: "new",
label: "New",
tone: "info",
add: "new-order"
},
{
id: "prep",
label: "Being packed",
tone: "warning",
limit: 4,
total: 612000
}
],
cards: [
{
id: 1,
columnId: "new",
title: "Order 1042, “Dawn” oak bedside lamp",
channel: "Shop",
amount: 18900,
due: "2026-10-14",
owner: "Ines Robert"
},
{
id: 2,
columnId: "new",
title: "Order 1043, three brass pendant lights",
channel: "Market",
amount: 64500,
due: "2026-10-16",
owner: "Malik Benoit",
blocked: true,
why: "Incomplete delivery address"
}
],
cardFields: [
{
key: "channel",
label: "Channel",
type: "badge"
},
{
key: "amount",
label: "Amount",
type: "money",
icon: "tag"
}
],
move: "move-order",
open: "order",
options: {
countLabel: "orders"
}
}
</script>

<template>
<KanbanWorkloadLanes v-bind="props" />
</template>

Props

Each prop says who changes it: Words, Picture, Action, Design, Data.* required.

PropTypeDescription
titlestringWordswhat the board follows ("Orders to prepare", "Quote pipeline"); without it no heading shows and screen readers hear “Board”
countnumberDatahow many records the board holds in all, counted by the server
columns*Column[]the columns shown, in order
cards*Record<string, unknown>[]Dataone record per card: `id`, `columnId` (the stage’s id), `title`, then the fields named by cardFields
cardFieldsCardField[]the record fields each card shows
movestringActionthe page action that moves a record to another stage: the host saves it
openstringActionwhere a card leads
optionsOptionsthe block’s settings: layout choices and secondary words, read by every variant
Column columns[] · 8 props
PropTypeDescription
id*stringDesignthe stage’s key, the `columnId` of its cards
label*stringWordsthe stage ("To prepare", "Shipped")
tone'neutral' | 'info' | 'success' | 'warning' | 'danger'the stage’s colour family; its label always says it too
collapsedbooleanstarts folded into a strip (a finished stage); an empty stage folds on its own
limitnumberDatathe work-in-progress limit the team set for this stage
countnumberDatahow many records the stage holds in all, when the cards are only a slice
totalnumberDatathe stage’s sum in cents, summed by the server
addstringActionadds a record to this stage
CardField cardFields[] · 4 props
PropTypeDescription
key*stringDesignthe key of the field in the record
label*stringWordswhat the field is ("Due date"), read by screen readers before the value
type*'money' | 'date' | 'person' | 'text' | 'badge'what kind of card field it is: money, date, person, text, badge
iconstringDesigncalendar, euro, user, tag, clock, mail, phone, building, package
Options options · 5 props
PropTypeDescription
flagReasonFieldstringDesignthe record key that says why
countLabelstringWordswhat the board count counts ("orders")
moveLabelstringWordsthe move menu’s button ("Move")
currencystringDesignISO 4217 for money fields, the app’s by default
mood'inverse' | 'brand' | 'warm' | 'tint' | stringa band of the page that redefines the theme surfaces inside it
What it asks your app for

The block never knows your app: it asks it, through one context provided once, where its links lead, what its actions do, how a price reads and which words to say (The host context).

MemberWhat it is for
hrefthe address an action leads to, or null to hide what leads there
actruns a change (subscribe, add to cart, save) and answers { ok } or { ok: false, error }
canwhether the page has this action
moneyformats a price, given in cents
asseta picture’s address as your app serves it
Linkyour router’s link component
cartCountthe cart badge’s number
cartDrawerwhether your app has a cart drawer
cartOpenwhether the cart drawer is open
labelyour word for an interface key, or undefined to keep the block’s own

The words it says itself, in English and French; label(key) replaces any of them:

KeyEnglishFrench
newsletter.alreadyYou are already subscribed.Vous êtes déjà inscrit.
newsletter.doneDone: you are subscribed.C’est noté : vous êtes inscrit.
newsletter.invalidCheck the email address.Vérifiez l’adresse e-mail.
newsletter.tooManyToo many attempts, try again in a moment.Trop de tentatives, réessayez dans un moment.

Features

  • Every word in the server HTML
  • Same markup in Vue and React
  • Theme tokens only: every theme, light and dark
  • Shows what you give it, invents nothing
  • No motion; still under reduced motion
  • Real buttons and links, a visible focus
  • Asks your app through actions: columns[].add, board.move, open
  • Reads records from your app

A kanban section, for app, projects, pipeline pages; it uses @lucide/vue, @vueuse/core, class-variance-authority, clsx, reka-ui, tailwind-merge.

Built with

The components this block is made of; each one installs on its own too.

More kanban blocks

  • Board compact: many small cards (a title, one chip, an owner) on narrow columns.
  • Board stacked: a phone-first board: the stages stacked as folding sections, one column wide.
  • Board stage ledger: Wide horizontal stage rows with a count rail and wrapping cards, for reviewing the merchant’s own records without horizontal scrolling.
  • Board tinted collapsible: a sales pipeline whose stages are tinted and whose finished or empty stages fold into a strip.
  • Held up columns: a release or production board where some cards are held up and the reason must be seen.
  • Plan split: An editable plan: the groups and tasks as a folding tree beside their bars on a day, week, month or quarter grid, which the team drags, resizes or moves with the keys to reschedule the merchant’s own tasks.
  • Workflow canvas list: Ordered steps with incoming conditions and last-run states, the merchant’s own only; suitable for long or complex automations.
  • Workflow canvas read only tree: A short branching automation in connected cards, indented on phones; run states are the merchant’s own only.

All 10 kanban blocks