Kanban
A four-column task board with drag, keyboard moves and a drawer.
Usage
Task board
Drag cards between columns, or focus a card, press Space to pick it up, move it with the arrow keys and press Space to drop it. Progress bars fill once the board is in view. Sample data.
Loading demo...
Overview
A team task flow with four columns, To do, In progress, In review and Done. Cards carry an owner, a priority, progress and a due date. Drag and keyboard reach the same result, and the most recent move can be undone.
- Drag: cards reorder within a column or move to another one; the drop point is marked by an accent line.
- Keyboard: focus a card and press Space to pick it up. Up and Down move it within its column, Left and Right change column, Space or Enter drops it, and Escape returns it to where it was. Focus stays on the card while it is picked up.
- Details: a click or Enter opens the drawer. Its move buttons shift the card to the adjacent column, which is the non-drag path.
- Filters: the chips filter by owner, high priority or overdue. Cards that do not match fade but keep their place, so drag and keyboard still work.
- Due hints: open cards read Overdue, Due today, Due tomorrow or Due in N days; finished cards read Done.
- Undo: after a move the toast stays for about 4 seconds, and Undo restores the state from before it. Pointer or focus on the toast keeps it open; it closes about 2 seconds after both leave.
- Playback: once in view, each card's progress bar fills in turn. Under reduced motion the end state shows at once and no timer runs.
- Layout: below 640px the columns stack; from 640px two sit per row; from 760px four sit side by side, each scrolling on its own.
Customization
- For real data, replace
boardwith the columns and order the server returns. Each move sends one request, and a failed request restores the snapshot taken before the move. - With another drag implementation, keep the keyboard path: picking up, moving, dropping and cancelling must all work without a pointer.
- For a work-in-progress limit, check the target column's count before moving. Over the limit, keep the card where it is and say why in the toast.
- Due hints use the fixed "now" of the sample data. With real data, use the current time and show dates in the reader's time zone.
Related components
| Region | Components | Role |
|---|---|---|
| Filter | TxFilterChips | Filter by owner, priority and overdue |
| Column header | TxBadge | Card count per column |
| Card | TxTag, TxAvatar, TxProgressBar, TxDotIndicator, TxStatusBadge | Labels, owner, progress, priority and due hint |
| Detail drawer | TxDrawer, TxButton | Details, with buttons that move the card |
| Feedback | TxToastPanel | Undoable result after a move |