Data JS behaviour

Kanban

A board whose cards move by native drag & drop (and from each card’s three-dot menu, so the keyboard works too); moves glide on FLIP, the column counts roll and the quick-add grows in place.

Real scenarios

The component as it is used in a product — not a specimen grid.

The design team’s sprint

Drag a card into another column — it glides on FLIP, the placeholder breathes where it will land and the column counts roll. No keyboard? Every move also lives in the card’s three-dot menu, and each move reports back through a toast (the nx-move event riding the board).

Backlog

2 cards
  • Wire the settings page

    FR-104 · 2 comments

  • Dark-theme audit of invoices

    Chore · 1 comment

This week

2 cards
  • Kanban block for the design system

    Block · in review

  • Persian digits in the analytics card

    FR-231

Shipped this month

2 cards
  • Print stylesheet for the invoice

    v2.4 · shipped

  • Roving tab stops in the calendar

    A11y

Without move-action the board owns its state client-side and tells you through events; pass move-action="moveCard" and the columns you hand in become the single truth.

The support intake lane

quick-add grows a card in place — type and press Enter. The three-dot menu also carries each card’s own actions (open, duplicate, delete).

New

1 cards
  • «The bot answers in the wrong register»

    WhatsApp · فارسی

Triaged

1 cards
  • Refund stuck for order #981

    Escalated · billing

Waiting on the customer

0 cards
  • No cards yet

Important props

Important props
Prop Type Default What it does
columns array [] Each column: ['id' => …, 'title' => …, 'tone' => …, 'cards' => [['id' => …, 'title' => …, 'meta' => …, 'tone' => …, 'assignee' => ['name' => …], 'actions' => […]]]] — the columns you pass are the truth.
moveAction / addAction string null Livewire method names: moveCard($card, $from, $to, $index) and addCard($column, $title); without them everything stays client-side and nx-move / nx-card-action events fire.
quickAdd bool true The quick-add form under each column.
height / label / locale string null The board height, its accessible name and the built-in words’ locale.

Snippet

<x-nx::kanban height="30rem" :columns="[
    ['id' => 'todo', 'title' => 'انبار', 'tone' => 'info', 'cards' => [
        ['id' => 'c1', 'title' => 'سیم‌کشی صفحهٔ تنظیمات', 'meta' => 'FR-104 · 2 دیدگاه', 'tone' => 'info'],
    ]],
    ['id' => 'doing', 'title' => 'این هفته', 'tone' => 'warning', 'cards' => []],
]" x-on:nx-move="$wire.ping('جابه‌جا شد')" />