Patterns
Kanban board
Drag cards between stages, or focus one and press ← / →. Fixed-width columns that scroll; a summary per column.
A Wavi Pro component
The live example is open to everyone. The source comes with a Wavi Pro licence: add it with one command, or copy it below.
Lead
2Banani Tower
Jamuna Future Park
Site visit
1Bashundhara City
Quote sent
1Square Hospital
Won
1Unimart Gulshan
The example code comes with Wavi Pro
One payment for every Pro component, block and template, with every update.
Import#
The package for everything else, and the Pro component from where `add` puts it:
import { Avatar } from "@waveinno/ui";
import { KanbanBoard, type KanbanColumn } from "@/components/wavi-pro/kanban";Props#
Read from the source of this version, so they match the code exactly.
<KanbanBoard>
pro/kanban.tsx| Prop | Type | Default | Description |
|---|---|---|---|
columnsrequired | KanbanColumn[] | — | |
itemsrequired | T[] | — | |
getIdrequired | (item: T) => string | — | |
getColumnrequired | (item: T) => string | — | |
onMoverequired | (id: string, toColumn: string) => void | — | |
renderCardrequired | (item: T) => React.ReactNode | — | |
renderColumnSummary | (column: KanbanColumn, items: T[]) => React.ReactNode | — | |
className | string | — |
<Avatar>
src/components/ui/avatar.tsx| Prop | Type | Default | Description |
|---|---|---|---|
namerequired | string | — | |
src | string | null | — | |
size | keyof typeof sizes | "md" | |
status | keyof typeof STATUS | — | |
verified | boolean | — | |
ring | "gradient" | — | |
shape | "circle" | "square" | "circle" | |
className | string | — |
Add it to your project#
With your licence key, this writes the component to components/wavi-pro/ and installs anything it needs:
$ npx @waveinno/ui add kanban --key <your licence key>Source#
Or copy the file yourself. It imports only from @waveinno/ui, lucide-react and React (and Radix where noted).
The source comes with Wavi Pro
One payment for every Pro component, block and template, with every update.
Install#
If the project does not have the package yet, add it, then follow the setup for Next.js or Vite once.
$ npm install @waveinno/ui