Board columns — Kanban block
Freekanban-board-columns · for app, projects, pipeline pages
Board columns
Records grouped by stage, side by side, so a team sees the flow and moves a record forward
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-board-columnsUsage
Its demo data, shortened (Using blocks).
<script setup lang="ts">
import KanbanBoardColumns from '@/components/trame/blocks/kanban/kanban-board-columns.vue'
const props = {
title: "Orders to prepare",
count: 7,
columns: [
{
id: "new",
label: "New",
tone: "info",
add: "new-order"
},
{
id: "prep",
label: "Preparing",
tone: "warning",
limit: 4,
total: 612000
}
],
cards: [
{
id: 1,
columnId: "new",
title: "Order 1042, “Dawn” oak bedside lamp",
channel: "Store",
amount: 18900,
due: "2026-10-14",
owner: "Ivy 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 shipping address"
}
],
cardFields: [
{
key: "channel",
label: "Channel",
type: "badge"
},
{
key: "amount",
label: "Amount",
type: "money",
icon: "tag"
}
],
move: "move-order",
open: "order",
options: {
showTotals: true,
countLabel: "orders"
}
}
</script>
<template>
<KanbanBoardColumns v-bind="props" />
</template>Props
Each prop says who changes it: Words, Picture, Action, Design, Data.* required.
| Prop | Type | Description |
|---|---|---|
| title | string | Wordswhat the board follows ("Orders to prepare", "Quote pipeline"); without it no heading shows and screen readers hear “Board” |
| count | number | Datahow 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 |
| cardFields | CardField[] | the record fields each card shows |
| move | string | Actionthe page action that moves a record to another stage: the host saves it |
| open | string | Actionwhere a card leads |
| options | Options | the block’s settings: layout choices and secondary words, read by every variant |
Column columns[] · 8 props
| Prop | Type | Description |
|---|---|---|
| id* | string | Designthe stage’s key, the `columnId` of its cards |
| label* | string | Wordsthe stage ("To prepare", "Shipped") |
| tone | 'neutral' | 'info' | 'success' | 'warning' | 'danger' | the stage’s colour family; its label always says it too |
| collapsed | boolean | starts folded into a strip (a finished stage); an empty stage folds on its own |
| limit | number | Datathe work-in-progress limit the team set for this stage |
| count | number | Datahow many records the stage holds in all, when the cards are only a slice |
| total | number | Datathe stage’s sum in cents, summed by the server |
| add | string | Actionadds a record to this stage |
CardField cardFields[] · 4 props
| Prop | Type | Description |
|---|---|---|
| key* | string | Designthe key of the field in the record |
| label* | string | Wordswhat 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 |
| icon | string | Designcalendar, euro, user, tag, clock, mail, phone, building, package |
Options options · 6 props
| Prop | Type | Description |
|---|---|---|
| showTotals | boolean | whether each column’s total is shown |
| flagReasonField | string | Designthe record key that says why |
| countLabel | string | Wordswhat the board count counts ("orders") |
| moveLabel | string | Wordsthe move menu’s button ("Move") |
| currency | string | DesignISO 4217 for money fields, the app’s by default |
| mood | 'inverse' | 'brand' | 'warm' | 'tint' | string | a 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).
| Member | What it is for |
|---|---|
| href | the address an action leads to, or null to hide what leads there |
| act | runs a change (subscribe, add to cart, save) and answers { ok } or { ok: false, error } |
| can | whether the page has this action |
| money | formats a price, given in cents |
| asset | a picture’s address as your app serves it |
| Link | your router’s link component |
| cartCount | the cart badge’s number |
| cartDrawer | whether your app has a cart drawer |
| cartOpen | whether the cart drawer is open |
| label | your 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:
| Key | English | French |
|---|---|---|
| newsletter.already | You are already subscribed. | Vous êtes déjà inscrit. |
| newsletter.done | Done: you are subscribed. | C’est noté : vous êtes inscrit. |
| newsletter.invalid | Check the email address. | Vérifiez l’adresse e-mail. |
| newsletter.tooMany | Too 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
recordsfrom 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
- 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.
- Workload lanes: Stages crossed with the first person field, for reviewing the team’s own workload by responsible person.