Plan split — Kanban block
Prokanban-plan-split · for app, projects pages
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.
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-plan-splitUsage
Its demo data, shortened (Using blocks).
<script setup lang="ts">
import KanbanPlanSplit from '@/components/trame/blocks/kanban/kanban-plan-split.vue'
const props = {
title: "Spring launch plan",
intro: "Drag a bar to move a task, pull its ends to change its dates, or pick it and use the arrow keys.",
rows: [
{
id: "research",
label: "Research"
},
{
id: "interviews",
parentId: "research",
label: "Customer interviews",
start: 1772409600000,
end: 1773187200000,
progress: 100,
status: "Done"
}
],
scale: "week",
today: "2026-03-18",
reschedule: "tasks.reschedule"
}
</script>
<template>
<KanbanPlanSplit v-bind="props" />
</template>Props
Each prop says who changes it: Words, Picture, Action, Design, Data.* required.
| Prop | Type | Description |
|---|---|---|
| title | string | Wordswhat the plan is ("Spring launch plan") |
| intro | string | Wordsa sentence or two under the heading |
| rows* | Row[] | Datathe plan’s groups and tasks, in order: a row whose id is another row’s parentId is a group (its bar is the span of its tasks); `start` and `end` are the first and last day in epoch milliseconds (UTC midnight, both days included); a task without them is not scheduled yet |
| scale | 'day' | 'week' | 'month' | 'quarter' | the time scale the board opens on; week by default |
| today | string | Datatoday’s date (YYYY-MM-DD) as the host knows it, so the server and the page agree |
| reschedule | string | Actionsaves a task’s new dates: without it, or when the page lacks it, the plan is read-only |
| options | Options | the block’s settings: layout choices and secondary words, read by every variant |
Row rows[] · 12 props
| Prop | Type | Description |
|---|---|---|
| id* | string | Datathe item’s id |
| parentId | string | Datathe id of the item it belongs under, if any |
| label* | string | Wordsthe item’s name |
| start | number | axis coordinate in the same unit as range, e.g. epoch milliseconds or trace milliseconds |
| end | number | axis coordinate where it ends, in the same unit as start |
| dates | string | Wordsits dates, as the host writes them |
| baseline | Baseline | the original schedule, to compare with |
| progress | number | how far along it is, 0 to 100 |
| owners | Owner[] | Datawho is in charge of it |
| status | string | Wordsits status, in the host’s words |
| tone | 'neutral' | 'info' | 'success' | 'warning' | 'danger' | the status colour |
| detail | string | Wordsone more line about it |
Baseline rows[].baseline · 3 props
| Prop | Type | Description |
|---|---|---|
| start* | number | where it started, in the same unit as the item’s start |
| end* | number | where it ended, in the same unit as the item’s end |
| dates | string | Wordsthe original schedule in the host’s words |
Owner rows[].owners[] · 6 props
| Prop | Type | Description |
|---|---|---|
| id | string | number | Datathe record’s id in the tool that answers it |
| name* | string | Wordsthe person’s name |
| role | string | Wordstheir role or job title |
| company | string | Wordswhere they work |
| avatar | string | Picturea picture: a root-relative path (/media/…) or an absolute URL |
| url | string | Designa page about them |
Options options · 1 props
| Prop | Type | Description |
|---|---|---|
| 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 |
| 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:
plan.reschedule - Reads
tasksfrom your app
A kanban section, for app, projects 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.
- 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.