Components Data display

Kanban board

Track studio work across columns and drag a card to its next stage.

Live previewGo + JavaScript

Form & Function

Studio board

March 2027

Backlog

2
  1. Editorial

    Edit the maker interviews

  2. Programme

    Draft the workshop notes

    List what each visitor needs to bring to the folding session.

In progress

2
  1. Photography

    Photograph the paper studies

    A folded paper model casts a row of triangular shadows.
  2. Print

    Proof the wall labels

Done

2
  1. Programme

    Publish the studio dates

  2. Fabrication

    Build the display plinths

Usage

Set Title and provide Columns in display order. Subtitle and Period are optional. Give each column a stable Key and a Title, and set Current on the column you want to highlight. Add Cards with stable keys that are unique across the board. Each card takes a Title and can include a Label, Owner, Description, ImageURL with ImageAlt, or URL with LinkLabel. Serve your own images or copy the demo artwork from examples/components/events/form-function. Drag cards between columns or reorder them within a column. On a touch screen, use the card grip. Activate a card’s Move button to choose a destination column or move it up or down by one position. Choosing a destination appends the card to that column. Escape closes the controls. Go renders the full board and its links before JavaScript loads. To save a move, listen for the bubbling mono:kanban-change event and read cardId, fromColumnId, toColumnId, fromIndex, and toIndex from its detail object. The indexes are zero-based. Write the change to your application’s storage. Reloading restores the order supplied by your server.

Register kanban-board with Head and pass its properties to Render. Go setup guide

Use the Pipeline to show how a single piece of work progresses through its stages.

Go usage
Go usage
err := mono.UI.Render(w, "kanban-board", mono.Props{
	"Columns": []any{
		map[string]any{
			"Cards": []any{
				map[string]any{
					"Key":   "maker-interviews",
					"Label": "Editorial",
					"Owner": "Iris Tan",
					"Title": "Edit the maker interviews",
				},
				map[string]any{
					"Description": "List what each visitor needs to bring to the folding session.",
					"Key":         "workshop-notes",
					"Label":       "Programme",
					"Owner":       "Jo Leone",
					"Title":       "Draft the workshop notes",
				},
			},
			"Key":   "backlog",
			"Title": "Backlog",
		},
		map[string]any{
			"Cards": []any{
				map[string]any{
					"ImageAlt": "A folded paper model casts a row of triangular shadows.",
					"ImageURL": "../components/events/form-function/paper-study.webp",
					"Key":      "paper-studies",
					"Label":    "Photography",
					"Owner":    "Sam Okafor",
					"Title":    "Photograph the paper studies",
				},
				map[string]any{
					"Key":   "wall-labels",
					"Label": "Print",
					"Owner": "Iris Tan",
					"Title": "Proof the wall labels",
				},
			},
			"Current": true,
			"Key":     "in-progress",
			"Title":   "In progress",
		},
		map[string]any{
			"Cards": []any{
				map[string]any{
					"Key":       "studio-dates",
					"Label":     "Programme",
					"LinkLabel": "Open the studio calendar",
					"Owner":     "Leah Chen",
					"Title":     "Publish the studio dates",
					"URL":       "../components/event-calendar.html",
				},
				map[string]any{
					"Key":   "display-plinths",
					"Label": "Fabrication",
					"Owner": "Jo Leone",
					"Title": "Build the display plinths",
				},
			},
			"Key":   "done",
			"Title": "Done",
		},
	},
	"Period":   "March 2027",
	"Subtitle": "Form & Function",
	"Title":    "Studio board",
})
Rendered HTML
Rendered HTML
<section id="demo-kanban-board" data-mono="kanban-board" aria-labelledby="demo-kanban-board-title">
  <header class="mu-kb-mast">
    <div><p class="mu-kb-kicker">Form &amp; Function</p><h2 id="demo-kanban-board-title">Studio board</h2></div>
    <span class="mu-kb-period"><svg viewBox="0 0 24 24" width="16" height="16" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" aria-hidden="true"><rect x="3.5" y="5" width="17" height="16" rx="2"/><path d="M3.5 10h17M8 3v4m8-4v4"/></svg>March 2027</span>
  </header>
  
  <p class="mu-kb-hint" data-hint hidden><svg viewBox="0 0 16 20" width="14" height="17" fill="currentColor" aria-hidden="true"><circle cx="5" cy="4" r="1.5"/><circle cx="11" cy="4" r="1.5"/><circle cx="5" cy="10" r="1.5"/><circle cx="11" cy="10" r="1.5"/><circle cx="5" cy="16" r="1.5"/><circle cx="11" cy="16" r="1.5"/></svg>Drag a card by its grip, or select the grip for move options.</p>
  <div class="mu-kb-lanes" data-board-lanes>
    
    <section class="mu-kb-lane" data-column="backlog" aria-labelledby="demo-kanban-board-column-0">
      <header class="mu-kb-lane-head">
        <div class="mu-kb-rule" aria-hidden="true"><i></i></div>
        <div class="mu-kb-lane-title"><h3 id="demo-kanban-board-column-0" data-column-title>Backlog</h3>
          <span class="mu-kb-count"><span data-count>2</span></span>
        </div>
      </header>
      <ol class="mu-kb-cards" data-card-list aria-labelledby="demo-kanban-board-column-0">
        
        <li class="mu-kb-card" data-card="maker-interviews">
          <div class="mu-kb-card-head">
            <div><span class="mu-kb-label">Editorial</span><h4 data-card-title>Edit the maker interviews</h4></div>
            <button class="mu-kb-grip" type="button" data-handle hidden aria-label="Move Edit the maker interviews" title="Drag or open move options" aria-controls="demo-kanban-board-move-0-0" aria-expanded="false"><svg viewBox="0 0 16 20" width="14" height="17" fill="currentColor" aria-hidden="true"><circle cx="5" cy="4" r="1.5"/><circle cx="11" cy="4" r="1.5"/><circle cx="5" cy="10" r="1.5"/><circle cx="11" cy="10" r="1.5"/><circle cx="5" cy="16" r="1.5"/><circle cx="11" cy="16" r="1.5"/></svg></button>
          </div>
          
          
          <div class="mu-kb-footer">
            <span class="mu-kb-owner"><svg viewBox="0 0 20 20" width="15" height="15" fill="none" stroke="currentColor" stroke-width="1.4" stroke-linecap="round" aria-hidden="true"><circle cx="10" cy="10" r="8"/><circle cx="10" cy="8" r="2.25"/><path d="M5.6 15.3a4.7 4.7 0 0 1 8.8 0"/></svg>Iris Tan</span>
            
          </div>
          <div class="mu-kb-move" data-move-controls hidden id="demo-kanban-board-move-0-0">
            <label><span>Move to column</span><span class="mu-kb-select"><select data-move-to aria-label="Move Edit the maker interviews to column"></select><svg viewBox="0 0 20 20" width="14" height="14" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.6" aria-hidden="true"><path d="m5 8 5 5 5-5"/></svg></span></label>
            <div class="mu-kb-reorder" role="group" aria-label="Card order">
              <button type="button" data-move-up aria-label="Move Edit the maker interviews up" title="Move up"><svg viewBox="0 0 20 20" width="14" height="14" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.6" aria-hidden="true"><path d="m5 8 5 5 5-5"/></svg></button>
              <button type="button" data-move-down aria-label="Move Edit the maker interviews down" title="Move down"><svg viewBox="0 0 20 20" width="14" height="14" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.6" aria-hidden="true"><path d="m5 8 5 5 5-5"/></svg></button>
            </div>
          </div>
        </li>
        <li class="mu-kb-card" data-card="workshop-notes">
          <div class="mu-kb-card-head">
            <div><span class="mu-kb-label">Programme</span><h4 data-card-title>Draft the workshop notes</h4></div>
            <button class="mu-kb-grip" type="button" data-handle hidden aria-label="Move Draft the workshop notes" title="Drag or open move options" aria-controls="demo-kanban-board-move-0-1" aria-expanded="false"><svg viewBox="0 0 16 20" width="14" height="17" fill="currentColor" aria-hidden="true"><circle cx="5" cy="4" r="1.5"/><circle cx="11" cy="4" r="1.5"/><circle cx="5" cy="10" r="1.5"/><circle cx="11" cy="10" r="1.5"/><circle cx="5" cy="16" r="1.5"/><circle cx="11" cy="16" r="1.5"/></svg></button>
          </div>
          
          <p class="mu-kb-desc">List what each visitor needs to bring to the folding session.</p>
          <div class="mu-kb-footer">
            <span class="mu-kb-owner"><svg viewBox="0 0 20 20" width="15" height="15" fill="none" stroke="currentColor" stroke-width="1.4" stroke-linecap="round" aria-hidden="true"><circle cx="10" cy="10" r="8"/><circle cx="10" cy="8" r="2.25"/><path d="M5.6 15.3a4.7 4.7 0 0 1 8.8 0"/></svg>Jo Leone</span>
            
          </div>
          <div class="mu-kb-move" data-move-controls hidden id="demo-kanban-board-move-0-1">
            <label><span>Move to column</span><span class="mu-kb-select"><select data-move-to aria-label="Move Draft the workshop notes to column"></select><svg viewBox="0 0 20 20" width="14" height="14" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.6" aria-hidden="true"><path d="m5 8 5 5 5-5"/></svg></span></label>
            <div class="mu-kb-reorder" role="group" aria-label="Card order">
              <button type="button" data-move-up aria-label="Move Draft the workshop notes up" title="Move up"><svg viewBox="0 0 20 20" width="14" height="14" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.6" aria-hidden="true"><path d="m5 8 5 5 5-5"/></svg></button>
              <button type="button" data-move-down aria-label="Move Draft the workshop notes down" title="Move down"><svg viewBox="0 0 20 20" width="14" height="14" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.6" aria-hidden="true"><path d="m5 8 5 5 5-5"/></svg></button>
            </div>
          </div>
        </li>
      </ol>
      <p class="mu-kb-empty" data-empty hidden>No cards in this column.</p>
    </section>
    
    <section class="mu-kb-lane" data-column="in-progress" data-current aria-labelledby="demo-kanban-board-column-1">
      <header class="mu-kb-lane-head">
        <div class="mu-kb-rule" aria-hidden="true"><i></i></div>
        <div class="mu-kb-lane-title"><h3 id="demo-kanban-board-column-1" data-column-title>In progress</h3>
          <span class="mu-kb-count"><span data-count>2</span></span>
        </div>
      </header>
      <ol class="mu-kb-cards" data-card-list aria-labelledby="demo-kanban-board-column-1">
        
        <li class="mu-kb-card" data-card="paper-studies">
          <div class="mu-kb-card-head">
            <div><span class="mu-kb-label">Photography</span><h4 data-card-title>Photograph the paper studies</h4></div>
            <button class="mu-kb-grip" type="button" data-handle hidden aria-label="Move Photograph the paper studies" title="Drag or open move options" aria-controls="demo-kanban-board-move-1-0" aria-expanded="false"><svg viewBox="0 0 16 20" width="14" height="17" fill="currentColor" aria-hidden="true"><circle cx="5" cy="4" r="1.5"/><circle cx="11" cy="4" r="1.5"/><circle cx="5" cy="10" r="1.5"/><circle cx="11" cy="10" r="1.5"/><circle cx="5" cy="16" r="1.5"/><circle cx="11" cy="16" r="1.5"/></svg></button>
          </div>
          <img class="mu-kb-art" src="../components/events/form-function/paper-study.webp" alt="A folded paper model casts a row of triangular shadows." draggable="false" loading="lazy" decoding="async">
          
          <div class="mu-kb-footer">
            <span class="mu-kb-owner"><svg viewBox="0 0 20 20" width="15" height="15" fill="none" stroke="currentColor" stroke-width="1.4" stroke-linecap="round" aria-hidden="true"><circle cx="10" cy="10" r="8"/><circle cx="10" cy="8" r="2.25"/><path d="M5.6 15.3a4.7 4.7 0 0 1 8.8 0"/></svg>Sam Okafor</span>
            
          </div>
          <div class="mu-kb-move" data-move-controls hidden id="demo-kanban-board-move-1-0">
            <label><span>Move to column</span><span class="mu-kb-select"><select data-move-to aria-label="Move Photograph the paper studies to column"></select><svg viewBox="0 0 20 20" width="14" height="14" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.6" aria-hidden="true"><path d="m5 8 5 5 5-5"/></svg></span></label>
            <div class="mu-kb-reorder" role="group" aria-label="Card order">
              <button type="button" data-move-up aria-label="Move Photograph the paper studies up" title="Move up"><svg viewBox="0 0 20 20" width="14" height="14" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.6" aria-hidden="true"><path d="m5 8 5 5 5-5"/></svg></button>
              <button type="button" data-move-down aria-label="Move Photograph the paper studies down" title="Move down"><svg viewBox="0 0 20 20" width="14" height="14" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.6" aria-hidden="true"><path d="m5 8 5 5 5-5"/></svg></button>
            </div>
          </div>
        </li>
        <li class="mu-kb-card" data-card="wall-labels">
          <div class="mu-kb-card-head">
            <div><span class="mu-kb-label">Print</span><h4 data-card-title>Proof the wall labels</h4></div>
            <button class="mu-kb-grip" type="button" data-handle hidden aria-label="Move Proof the wall labels" title="Drag or open move options" aria-controls="demo-kanban-board-move-1-1" aria-expanded="false"><svg viewBox="0 0 16 20" width="14" height="17" fill="currentColor" aria-hidden="true"><circle cx="5" cy="4" r="1.5"/><circle cx="11" cy="4" r="1.5"/><circle cx="5" cy="10" r="1.5"/><circle cx="11" cy="10" r="1.5"/><circle cx="5" cy="16" r="1.5"/><circle cx="11" cy="16" r="1.5"/></svg></button>
          </div>
          
          
          <div class="mu-kb-footer">
            <span class="mu-kb-owner"><svg viewBox="0 0 20 20" width="15" height="15" fill="none" stroke="currentColor" stroke-width="1.4" stroke-linecap="round" aria-hidden="true"><circle cx="10" cy="10" r="8"/><circle cx="10" cy="8" r="2.25"/><path d="M5.6 15.3a4.7 4.7 0 0 1 8.8 0"/></svg>Iris Tan</span>
            
          </div>
          <div class="mu-kb-move" data-move-controls hidden id="demo-kanban-board-move-1-1">
            <label><span>Move to column</span><span class="mu-kb-select"><select data-move-to aria-label="Move Proof the wall labels to column"></select><svg viewBox="0 0 20 20" width="14" height="14" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.6" aria-hidden="true"><path d="m5 8 5 5 5-5"/></svg></span></label>
            <div class="mu-kb-reorder" role="group" aria-label="Card order">
              <button type="button" data-move-up aria-label="Move Proof the wall labels up" title="Move up"><svg viewBox="0 0 20 20" width="14" height="14" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.6" aria-hidden="true"><path d="m5 8 5 5 5-5"/></svg></button>
              <button type="button" data-move-down aria-label="Move Proof the wall labels down" title="Move down"><svg viewBox="0 0 20 20" width="14" height="14" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.6" aria-hidden="true"><path d="m5 8 5 5 5-5"/></svg></button>
            </div>
          </div>
        </li>
      </ol>
      <p class="mu-kb-empty" data-empty hidden>No cards in this column.</p>
    </section>
    
    <section class="mu-kb-lane" data-column="done" aria-labelledby="demo-kanban-board-column-2">
      <header class="mu-kb-lane-head">
        <div class="mu-kb-rule" aria-hidden="true"><i></i></div>
        <div class="mu-kb-lane-title"><h3 id="demo-kanban-board-column-2" data-column-title>Done</h3>
          <span class="mu-kb-count"><span data-count>2</span></span>
        </div>
      </header>
      <ol class="mu-kb-cards" data-card-list aria-labelledby="demo-kanban-board-column-2">
        
        <li class="mu-kb-card" data-card="studio-dates">
          <div class="mu-kb-card-head">
            <div><span class="mu-kb-label">Programme</span><h4 data-card-title>Publish the studio dates</h4></div>
            <button class="mu-kb-grip" type="button" data-handle hidden aria-label="Move Publish the studio dates" title="Drag or open move options" aria-controls="demo-kanban-board-move-2-0" aria-expanded="false"><svg viewBox="0 0 16 20" width="14" height="17" fill="currentColor" aria-hidden="true"><circle cx="5" cy="4" r="1.5"/><circle cx="11" cy="4" r="1.5"/><circle cx="5" cy="10" r="1.5"/><circle cx="11" cy="10" r="1.5"/><circle cx="5" cy="16" r="1.5"/><circle cx="11" cy="16" r="1.5"/></svg></button>
          </div>
          
          
          <div class="mu-kb-footer">
            <span class="mu-kb-owner"><svg viewBox="0 0 20 20" width="15" height="15" fill="none" stroke="currentColor" stroke-width="1.4" stroke-linecap="round" aria-hidden="true"><circle cx="10" cy="10" r="8"/><circle cx="10" cy="8" r="2.25"/><path d="M5.6 15.3a4.7 4.7 0 0 1 8.8 0"/></svg>Leah Chen</span>
            <a class="mu-kb-link" href="../components/event-calendar.html" draggable="false">Open the studio calendar<svg viewBox="0 0 16 16" width="13" height="13" fill="none" stroke="currentColor" stroke-width="1.4" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M3 8h9M8.5 4.5 12 8l-3.5 3.5"/></svg></a>
          </div>
          <div class="mu-kb-move" data-move-controls hidden id="demo-kanban-board-move-2-0">
            <label><span>Move to column</span><span class="mu-kb-select"><select data-move-to aria-label="Move Publish the studio dates to column"></select><svg viewBox="0 0 20 20" width="14" height="14" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.6" aria-hidden="true"><path d="m5 8 5 5 5-5"/></svg></span></label>
            <div class="mu-kb-reorder" role="group" aria-label="Card order">
              <button type="button" data-move-up aria-label="Move Publish the studio dates up" title="Move up"><svg viewBox="0 0 20 20" width="14" height="14" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.6" aria-hidden="true"><path d="m5 8 5 5 5-5"/></svg></button>
              <button type="button" data-move-down aria-label="Move Publish the studio dates down" title="Move down"><svg viewBox="0 0 20 20" width="14" height="14" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.6" aria-hidden="true"><path d="m5 8 5 5 5-5"/></svg></button>
            </div>
          </div>
        </li>
        <li class="mu-kb-card" data-card="display-plinths">
          <div class="mu-kb-card-head">
            <div><span class="mu-kb-label">Fabrication</span><h4 data-card-title>Build the display plinths</h4></div>
            <button class="mu-kb-grip" type="button" data-handle hidden aria-label="Move Build the display plinths" title="Drag or open move options" aria-controls="demo-kanban-board-move-2-1" aria-expanded="false"><svg viewBox="0 0 16 20" width="14" height="17" fill="currentColor" aria-hidden="true"><circle cx="5" cy="4" r="1.5"/><circle cx="11" cy="4" r="1.5"/><circle cx="5" cy="10" r="1.5"/><circle cx="11" cy="10" r="1.5"/><circle cx="5" cy="16" r="1.5"/><circle cx="11" cy="16" r="1.5"/></svg></button>
          </div>
          
          
          <div class="mu-kb-footer">
            <span class="mu-kb-owner"><svg viewBox="0 0 20 20" width="15" height="15" fill="none" stroke="currentColor" stroke-width="1.4" stroke-linecap="round" aria-hidden="true"><circle cx="10" cy="10" r="8"/><circle cx="10" cy="8" r="2.25"/><path d="M5.6 15.3a4.7 4.7 0 0 1 8.8 0"/></svg>Jo Leone</span>
            
          </div>
          <div class="mu-kb-move" data-move-controls hidden id="demo-kanban-board-move-2-1">
            <label><span>Move to column</span><span class="mu-kb-select"><select data-move-to aria-label="Move Build the display plinths to column"></select><svg viewBox="0 0 20 20" width="14" height="14" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.6" aria-hidden="true"><path d="m5 8 5 5 5-5"/></svg></span></label>
            <div class="mu-kb-reorder" role="group" aria-label="Card order">
              <button type="button" data-move-up aria-label="Move Build the display plinths up" title="Move up"><svg viewBox="0 0 20 20" width="14" height="14" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.6" aria-hidden="true"><path d="m5 8 5 5 5-5"/></svg></button>
              <button type="button" data-move-down aria-label="Move Build the display plinths down" title="Move down"><svg viewBox="0 0 20 20" width="14" height="14" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.6" aria-hidden="true"><path d="m5 8 5 5 5-5"/></svg></button>
            </div>
          </div>
        </li>
      </ol>
      <p class="mu-kb-empty" data-empty hidden>No cards in this column.</p>
    </section>
    
  </div>
  
  <span class="mu-sr-only" data-status role="status" aria-atomic="true"></span>
</section>
Submit the board order with a form
Submit the board order with a form
// Place the board inside your form and set its Go ID prop to "studio-board".
const board = document.getElementById('studio-board');
board.closest('form').addEventListener('formdata', ({ formData }) => {
  const order = Array.from(board.querySelectorAll('[data-column]'), column => ({
    key: column.dataset.column,
    cards: Array.from(column.querySelectorAll('[data-card]'), card => card.dataset.card),
  }));
  formData.set('board_order', JSON.stringify(order));
});
Go template
Go template
{{define "kb-grip"}}<svg viewBox="0 0 16 20" width="14" height="17" fill="currentColor" aria-hidden="true"><circle cx="5" cy="4" r="1.5"/><circle cx="11" cy="4" r="1.5"/><circle cx="5" cy="10" r="1.5"/><circle cx="11" cy="10" r="1.5"/><circle cx="5" cy="16" r="1.5"/><circle cx="11" cy="16" r="1.5"/></svg>{{end}}
{{define "kb-chevron"}}<svg viewBox="0 0 20 20" width="14" height="14" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.6" aria-hidden="true"><path d="m5 8 5 5 5-5"/></svg>{{end}}
<section id="{{.ID}}" data-mono="kanban-board" aria-labelledby="{{.ID}}-title">
  <header class="mu-kb-mast">
    <div>{{with .Subtitle}}<p class="mu-kb-kicker">{{.}}</p>{{end}}<h2 id="{{.ID}}-title">{{or .Title "Kanban board"}}</h2></div>
    {{with .Period}}<span class="mu-kb-period"><svg viewBox="0 0 24 24" width="16" height="16" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" aria-hidden="true"><rect x="3.5" y="5" width="17" height="16" rx="2"/><path d="M3.5 10h17M8 3v4m8-4v4"/></svg>{{.}}</span>{{end}}
  </header>
  {{if .Columns}}
  <p class="mu-kb-hint" data-hint hidden>{{template "kb-grip"}}Drag a card by its grip, or select the grip for move options.</p>
  <div class="mu-kb-lanes" data-board-lanes>
    {{range $ci, $column := .Columns}}
    <section class="mu-kb-lane" data-column="{{or .Key (printf "column-%d" $ci)}}"{{if .Current}} data-current{{end}} aria-labelledby="{{$.ID}}-column-{{$ci}}">
      <header class="mu-kb-lane-head">
        <div class="mu-kb-rule" aria-hidden="true"><i></i></div>
        <div class="mu-kb-lane-title"><h3 id="{{$.ID}}-column-{{$ci}}" data-column-title>{{or .Title "Untitled column"}}</h3>
          <span class="mu-kb-count"><span data-count>{{with .Cards}}{{len .}}{{else}}0{{end}}</span></span>
        </div>
      </header>
      <ol class="mu-kb-cards" data-card-list aria-labelledby="{{$.ID}}-column-{{$ci}}">
        {{range $i, $card := .Cards}}
        <li class="mu-kb-card" data-card="{{or .Key (printf "card-%d-%d" $ci $i)}}">
          <div class="mu-kb-card-head">
            <div>{{with .Label}}<span class="mu-kb-label">{{.}}</span>{{end}}<h4 data-card-title>{{or .Title "Untitled card"}}</h4></div>
            <button class="mu-kb-grip" type="button" data-handle hidden aria-label="Move {{or .Title "card"}}" title="Drag or open move options" aria-controls="{{$.ID}}-move-{{$ci}}-{{$i}}" aria-expanded="false">{{template "kb-grip"}}</button>
          </div>
          {{with .ImageURL}}<img class="mu-kb-art" src="{{.}}" alt="{{$card.ImageAlt}}" draggable="false" loading="lazy" decoding="async">{{end}}
          {{with .Description}}<p class="mu-kb-desc">{{.}}</p>{{end}}
          {{if or .Owner .URL}}<div class="mu-kb-footer">
            {{with .Owner}}<span class="mu-kb-owner"><svg viewBox="0 0 20 20" width="15" height="15" fill="none" stroke="currentColor" stroke-width="1.4" stroke-linecap="round" aria-hidden="true"><circle cx="10" cy="10" r="8"/><circle cx="10" cy="8" r="2.25"/><path d="M5.6 15.3a4.7 4.7 0 0 1 8.8 0"/></svg>{{.}}</span>{{end}}
            {{with .URL}}<a class="mu-kb-link" href="{{.}}" draggable="false">{{or $card.LinkLabel "View details"}}<svg viewBox="0 0 16 16" width="13" height="13" fill="none" stroke="currentColor" stroke-width="1.4" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M3 8h9M8.5 4.5 12 8l-3.5 3.5"/></svg></a>{{end}}
          </div>{{end}}
          <div class="mu-kb-move" data-move-controls hidden id="{{$.ID}}-move-{{$ci}}-{{$i}}">
            <label><span>Move to column</span><span class="mu-kb-select"><select data-move-to aria-label="Move {{or .Title "card"}} to column"></select>{{template "kb-chevron"}}</span></label>
            <div class="mu-kb-reorder" role="group" aria-label="Card order">
              <button type="button" data-move-up aria-label="Move {{or .Title "card"}} up" title="Move up">{{template "kb-chevron"}}</button>
              <button type="button" data-move-down aria-label="Move {{or .Title "card"}} down" title="Move down">{{template "kb-chevron"}}</button>
            </div>
          </div>
        </li>{{end}}
      </ol>
      <p class="mu-kb-empty" data-empty{{if .Cards}} hidden{{end}}>No cards in this column.</p>
    </section>
    {{end}}
  </div>
  {{else}}<p class="mu-kb-empty-board">No columns have been added.</p>{{end}}
  <span class="mu-sr-only" data-status role="status" aria-atomic="true"></span>
</section>
Component CSS
Component CSS
[data-mono="kanban-board"] {
  --kb-ink: #181818; --kb-muted: #575757; --kb-line: #ccc; --kb-card: #fff;
  --kb-mono: ui-monospace, SFMono-Regular, Consolas, monospace;
  width: 100%; min-width: 0; container-type: inline-size; background: #f7f7f7; color: var(--kb-ink);
}
.mu-kb-mast, .mu-kb-hint, .mu-kb-lanes, .mu-kb-empty-board { margin-inline: clamp(1rem, 3.4cqi, 3rem); }
.mu-kb-mast { display: flex; align-items: end; justify-content: space-between; flex-wrap: wrap; gap: .7rem 1rem; padding-block: clamp(1.3rem, 2.25cqi, 2.3rem) clamp(1.2rem, 1.9cqi, 1.75rem); }
.mu-kb-kicker { display: flex; align-items: center; gap: .55rem; margin: 0 0 .45rem; font: 600 .66rem/1.4 var(--kb-mono); letter-spacing: .08em; text-transform: uppercase; }
.mu-kb-kicker::before { content: ""; width: 1.5rem; height: 1px; background: currentColor; }
.mu-kb-mast h2 { margin: 0; font: 500 clamp(2.6rem, 5.6cqi, 4.6rem)/1 Georgia, "Times New Roman", serif; letter-spacing: -.065em; overflow-wrap: anywhere; }
.mu-kb-period { display: inline-flex; align-items: center; gap: .45rem; color: #505050; font: .76rem/1.35 var(--kb-mono); }
.mu-kb-hint { display: flex; align-items: center; gap: .4rem; padding: .73rem 0; border-top: 1px solid var(--kb-line); color: var(--kb-muted); font-size: .76rem; }
.mu-kb-hint svg { flex: none; width: 11px; height: 14px; }
.mu-kb-lanes { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(min(100%,15rem),1fr); gap: .65rem; align-items: stretch; padding: .18rem 0 clamp(1.25rem, 3cqi, 2.5rem); overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: thin; scrollbar-color: #939393 #e7e7e7; }
.mu-kb-lane { --kb-pane: #f0f0f0; min-width: 0; min-height: 17rem; padding: clamp(.8rem, 1.25cqi, 1.2rem); border: 1px solid var(--kb-line); border-radius: .9rem; background: var(--kb-pane); color: var(--kb-ink); }
.mu-kb-lane[data-current] { --kb-pane: #191919; --kb-ink: #fff; --kb-muted: #c8c8c8; --kb-line: #505050; --kb-card: #2b2b2b; border-color: #191919; }
.mu-kb-lane-head { margin: .1rem .1rem .88rem; }
.mu-kb-rule { display: flex; align-items: center; color: var(--kb-muted); margin: 0 0 .9rem; }
.mu-kb-rule::after { content: ""; height: 1px; background: currentColor; flex: 1; opacity: .45; }
.mu-kb-rule i { width: .59rem; height: .59rem; border: 1px solid currentColor; border-radius: 50%; }
[data-current] > .mu-kb-lane-head .mu-kb-rule i { background: currentColor; box-shadow: inset 0 0 0 1.5px var(--kb-pane); }
.mu-kb-lane-title { display: flex; align-items: center; justify-content: space-between; gap: .6rem; }
.mu-kb-lane-title h3 { font: 550 clamp(1.45rem, 2.25cqi, 2.05rem)/1.12 "Helvetica Neue", Arial, sans-serif; letter-spacing: -.055em; overflow-wrap: anywhere; }
.mu-kb-count { flex: none; display: grid; place-items: center; min-width: 1.6rem; height: 1.5rem; padding-inline: .36rem; border-radius: 1rem; border: 1px solid var(--kb-line); background: var(--kb-card); font: 600 .72rem/1 var(--kb-mono); }
.mu-kb-cards { position: relative; display: grid; align-content: start; gap: .55rem; padding: 0; margin: 0; list-style: none; }
.mu-kb-card { position: relative; min-width: 0; padding: clamp(.7rem, 1.1cqi, 1rem); background: var(--kb-card); border: 1px solid var(--kb-line); border-radius: .56rem; color: var(--kb-ink); }
.mu-kb-card[draggable="true"] { cursor: grab; }
.mu-kb-card[draggable="true"] :is(a, select, button) { cursor: pointer; }
.mu-kb-card-head { display: flex; align-items: start; justify-content: space-between; gap: .5rem; }
.mu-kb-card-head > div { min-width: 0; }
.mu-kb-label { display: block; margin-bottom: .36rem; color: var(--kb-muted); font: 600 .61rem/1.4 var(--kb-mono); text-transform: uppercase; letter-spacing: .075em; overflow-wrap: anywhere; }
.mu-kb-card h4 { font: 620 clamp(1.02rem, 1.52cqi, 1.3rem)/1.18 "Helvetica Neue", Arial, sans-serif; letter-spacing: -.035em; overflow-wrap: anywhere; }
.mu-kb-card .mu-kb-grip { display: grid; place-items: center; flex: none; padding: 0; width: 2rem; height: 2rem; margin: -.21rem -.21rem 0 0; border: 1px solid transparent; border-radius: .36rem; color: var(--kb-muted); background: transparent; cursor: grab; touch-action: none; user-select: none; }
.mu-kb-grip:hover, .mu-kb-grip[aria-expanded="true"] { border-color: var(--kb-line); background: var(--kb-pane); color: var(--kb-ink); }
.mu-kb-art { display: block; width: 100%; aspect-ratio: 2.65; object-fit: cover; border-radius: .32rem; margin-top: .72rem; background: #bbb; filter: grayscale(1); user-select: none; }
.mu-kb-desc { margin-top: .53rem; max-width: 48ch; font-size: .8rem; line-height: 1.48; color: var(--kb-muted); overflow-wrap: anywhere; }
.mu-kb-footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .45rem .7rem; margin-top: .9rem; }
.mu-kb-owner, .mu-kb-link { display: inline-flex; align-items: center; gap: .34rem; min-width: 0; font-size: .7rem; line-height: 1.35; overflow-wrap: anywhere; }
.mu-kb-owner { color: var(--kb-muted); }
.mu-kb-owner svg, .mu-kb-link svg { flex: none; }
.mu-kb-link { color: var(--kb-ink); font-weight: 600; text-underline-offset: .16rem; }
.mu-kb-move { display: flex; align-items: end; flex-wrap: wrap; gap: .45rem; margin-top: .8rem; padding-top: .7rem; border-top: 1px solid var(--kb-line); }
.mu-kb-move label { min-width: 0; flex: 1 1 7rem; display: grid; gap: .3rem; color: var(--kb-muted); font: .65rem/1.3 var(--kb-mono); }
.mu-kb-select { position: relative; display: block; }
.mu-kb-select select, .mu-kb-reorder button { height: 2.05rem; border: 1px solid var(--kb-line); border-radius: .35rem; background: var(--kb-card); color: var(--kb-ink); }
.mu-kb-select select { width: 100%; appearance: none; padding: .25rem 1.5rem .25rem .45rem; font: .78rem/1.3 "Helvetica Neue", Arial, sans-serif; }
.mu-kb-select > svg { position: absolute; top: 50%; right: .4rem; transform: translateY(-50%); pointer-events: none; }
.mu-kb-reorder { display: flex; gap: .18rem; }
.mu-kb-reorder button { display: grid; place-items: center; width: 1.9rem; padding: 0; }
.mu-kb-reorder [data-move-up] svg { transform: rotate(180deg); }
.mu-kb-empty { padding: 1.5rem .65rem; border: 1px dashed var(--kb-line); border-radius: .55rem; text-align: center; color: var(--kb-muted); font-size: .8rem; }
.mu-kb-empty-board { padding-block: .2rem 1.25rem; }
.mu-kb-card[data-dragging] { opacity: .45; }
.mu-kb-lane[data-drop-target] { outline: 2px dashed var(--kb-ink); outline-offset: -4px; }
.mu-kb-card[data-insert-before]::before, .mu-kb-cards[data-insert-end]::after { content: ""; position: absolute; z-index: 1; pointer-events: none; left: .12rem; right: .12rem; height: 3px; border-radius: .2rem; background: var(--kb-ink); }
.mu-kb-card[data-insert-before]::before { top: -.37rem; }
.mu-kb-cards[data-insert-end]::after { bottom: -.37rem; }
.mu-kb-drag-preview { position: fixed; top: 0; left: 0; z-index: 9999; width: max-content; max-width: min(72vw, 17rem); padding: .6rem .85rem; pointer-events: none; border: 1px solid #aaa; border-radius: .5rem; background: #191919; color: #fff; box-shadow: 0 4px 13px #0003; font: 600 .84rem/1.3 "Helvetica Neue", Arial, sans-serif; overflow-wrap: anywhere; }
@container (max-width: 40rem) {
  .mu-kb-lanes { grid-auto-columns: min(85%, 21rem); grid-template-columns: none; }
  .mu-kb-lanes:has(> :only-child) { grid-auto-columns: 100%; }
  .mu-kb-card .mu-kb-grip { width: 2.5rem; height: 2.5rem; margin-top: -.35rem; }
  .mu-kb-mast { align-items: start; flex-direction: column; }
}
@media (forced-colors: active) {
  .mu-kb-lane[data-current], .mu-kb-lane[data-drop-target] { outline: 2px solid Highlight; outline-offset: -3px; }
  .mu-kb-card[data-insert-before]::before, .mu-kb-cards[data-insert-end]::after { background: Highlight; forced-color-adjust: none; }
}
JavaScript module
JavaScript module
export function mount(root) {
  const doc = root.ownerDocument;
  const win = doc.defaultView;
  const lanes = root.querySelector('[data-board-lanes]');
  if (!lanes) return;
  const columns = [...lanes.querySelectorAll('[data-column]')];
  const lists = new Map(columns.map(column => [column, column.querySelector('[data-card-list]')]));
  const cardsIn = list => [...list.children].filter(item => item.hasAttribute('data-card'));
  const titleOf = card => card.querySelector('[data-card-title]').textContent.trim();
  const nameOf = column => column.querySelector('[data-column-title]').textContent.trim();
  const owned = element => element?.closest('[data-mono="kanban-board"]') === root;
  const status = root.querySelector('[data-status]');
  let opened = null;
  let dragged = null, dropColumn = null, insertBefore = null;
  let touch = null, preview = null, frame = 0, suppressClick = null;

  function closeControls(focus = false) {
    if (!opened) return;
    const handle = opened.querySelector('[data-handle]');
    opened.querySelector('[data-move-controls]').hidden = true;
    handle.setAttribute('aria-expanded', 'false');
    opened = null;
    if (focus) handle.focus();
  }

  function refresh(column) {
    const items = cardsIn(lists.get(column));
    column.querySelector('[data-count]').textContent = String(items.length);
    column.querySelector('[data-empty]').hidden = items.length > 0;
  }

  function openControls(card) {
    const wasOpen = opened === card;
    closeControls();
    if (wasOpen) return;
    opened = card;
    const column = card.closest('[data-column]');
    const items = cardsIn(lists.get(column));
    const select = card.querySelector('[data-move-to]');
    select.selectedIndex = columns.indexOf(column);
    select.disabled = columns.length < 2;
    card.querySelector('[data-move-up]').disabled = card === items[0];
    card.querySelector('[data-move-down]').disabled = card === items[items.length - 1];
    card.querySelector('[data-move-controls]').hidden = false;
    card.querySelector('[data-handle]').setAttribute('aria-expanded', 'true');
  }

  // Every input method commits through the same path. Indices describe the
  // source immediately before the move and the destination immediately after.
  function move(card, column, before, focus) {
    if (!owned(card) || !lists.has(column)) return;
    const from = card.closest('[data-column]');
    const list = lists.get(column);
    const fromIndex = cardsIn(lists.get(from)).indexOf(card);
    const keepFocus = card.contains(doc.activeElement);
    closeControls();
    if (before === card || (from === column && card.nextElementSibling === before)) {
      if (focus) card.querySelector('[data-handle]').focus();
      return;
    }
    list.insertBefore(card, before);
    refresh(from);
    if (column !== from) refresh(column);
    if (focus || keepFocus) card.querySelector('[data-handle]').focus({preventScroll: !focus});
    const toIndex = cardsIn(list).indexOf(card);
    if (status) status.textContent = titleOf(card) + ' moved to ' + nameOf(column) + ', position ' + (toIndex + 1) + '.';
    root.dispatchEvent(new win.CustomEvent('mono:kanban-change', {bubbles: true, detail: {
      cardId: card.dataset.card, fromColumnId: from.dataset.column, toColumnId: column.dataset.column, fromIndex, toIndex
    }}));
  }

  function mark(column, before = null) {
    if (dropColumn === column && insertBefore === before) return;
    dropColumn?.removeAttribute('data-drop-target');
    if (dropColumn) lists.get(dropColumn).removeAttribute('data-insert-end');
    insertBefore?.removeAttribute('data-insert-before');
    dropColumn = column;
    insertBefore = before;
    if (!column) return;
    column.setAttribute('data-drop-target', '');
    if (before) before.setAttribute('data-insert-before', '');
    else lists.get(column).setAttribute('data-insert-end', '');
  }

  function aim(element, y) {
    const column = owned(element) && element.closest('[data-column]');
    if (!lists.has(column)) { mark(null); return; }
    const before = cardsIn(lists.get(column)).find(card => {
      if (card === dragged) return false;
      const box = card.getBoundingClientRect();
      return y < box.top + box.height / 2;
    });
    mark(column, before || null);
  }

  function stop() {
    mark(null);
    dragged?.removeAttribute('data-dragging');
    dragged = null;
    const held = touch;
    touch = null;
    if (held?.handle.hasPointerCapture(held.id)) held.handle.releasePointerCapture(held.id);
    preview?.remove();
    preview = null;
    win.cancelAnimationFrame(frame);
    frame = 0;
    doc.removeEventListener('keydown', cancelOnEscape);
    win.removeEventListener('blur', stop);
  }

  function cancelOnEscape(event) {
    if (event.key === 'Escape') stop();
  }

  function begin(card) {
    closeControls();
    dragged = card;
    card.setAttribute('data-dragging', '');
    doc.addEventListener('keydown', cancelOnEscape);
    win.addEventListener('blur', stop);
  }

  function commit() {
    const card = dragged, column = dropColumn, before = insertBefore;
    stop();
    if (card && column) move(card, column, before, false);
  }

  for (const column of columns) {
    for (const card of cardsIn(lists.get(column))) {
      card.draggable = true;
      const handle = card.querySelector('[data-handle]');
      handle.draggable = true;
      handle.hidden = false;
      const select = card.querySelector('[data-move-to]');
      for (const destination of columns) {
        const option = doc.createElement('option');
        option.value = destination.dataset.column;
        option.textContent = nameOf(destination);
        select.append(option);
      }
    }
  }
  const hint = root.querySelector('[data-hint]');
  if (hint) hint.hidden = false;

  root.addEventListener('click', event => {
    if (!owned(event.target)) return;
    const card = event.target.closest('[data-card]');
    if (card && event.target.closest('[data-handle]')) {
      if (card === suppressClick && event.detail) {
        event.preventDefault();
        suppressClick = null;
      } else openControls(card);
      return;
    }
    const up = event.target.closest('[data-move-up]');
    const down = event.target.closest('[data-move-down]');
    if (card && (up || down)) {
      if ((up || down).disabled) return;
      const column = card.closest('[data-column]');
      const before = up ? card.previousElementSibling : card.nextElementSibling?.nextElementSibling || null;
      move(card, column, before, true);
    } else if (opened && !event.target.closest('[data-move-controls]')) closeControls();
  });
  root.addEventListener('change', event => {
    if (!owned(event.target) || !event.target.matches('[data-move-to]')) return;
    const card = event.target.closest('[data-card]');
    const column = columns[event.target.selectedIndex];
    if (column && card.closest('[data-column]') !== column) move(card, column, null, true);
  });
  root.addEventListener('keydown', event => {
    if (event.key === 'Escape' && opened && owned(event.target)) {
      event.preventDefault();
      closeControls(true);
    }
  });
  root.addEventListener('focusout', event => {
    if (opened && event.relatedTarget && !opened.contains(event.relatedTarget)) closeControls();
  });

  root.addEventListener('dragstart', event => {
    const card = event.target.closest('[data-card]');
    if (!owned(card) || !(event.target === card || event.target.matches('[data-handle]'))) return;
    if (touch || !event.dataTransfer) { event.preventDefault(); return; }
    begin(card);
    event.dataTransfer.effectAllowed = 'move';
    event.dataTransfer.setData('application/x-mono-kanban', card.dataset.card);
    if (event.target !== card) event.dataTransfer.setDragImage?.(card, 18, 15);
  });
  function acceptDrop(event) {
    if (!dragged || touch) return;
    aim(event.target, event.clientY);
    if (!dropColumn) return;
    event.preventDefault();
    if (event.dataTransfer) event.dataTransfer.dropEffect = 'move';
  }
  root.addEventListener('dragenter', acceptDrop);
  root.addEventListener('dragover', acceptDrop);
  root.addEventListener('dragleave', event => {
    if (dragged && !touch && !root.contains(event.relatedTarget)) mark(null);
  });
  root.addEventListener('drop', event => {
    if (!dragged || touch) return;
    aim(event.target, event.clientY);
    if (dropColumn) event.preventDefault();
    commit();
  });
  root.addEventListener('dragend', () => { if (!touch) stop(); });

  // Move the board under a held touch when the pointer reaches a scroll edge.
  // Schedule another frame only while an actual scroll is taking place.
  function edgeStep(value, min, max) {
    if (value < min || value > max) return 0;
    const edge = Math.min((max - min) / 4, 45);
    if (value < min + edge) return -Math.ceil((min + edge - value) / 3);
    if (value > max - edge) return Math.ceil((value - max + edge) / 3);
    return 0;
  }
  function paintTouch() {
    frame = 0;
    if (!touch || !dragged) return;
    const {x, y} = touch;
    const box = lanes.getBoundingClientRect();
    const oldLeft = lanes.scrollLeft;
    if (y >= box.top && y <= box.bottom && lanes.scrollWidth > lanes.clientWidth) {
      lanes.scrollLeft += edgeStep(x, Math.max(0, box.left), Math.min(win.innerWidth, box.right));
    }
    const page = doc.scrollingElement;
    const oldTop = page?.scrollTop;
    if (page && x >= box.left && x <= box.right) page.scrollTop += edgeStep(y, 0, win.innerHeight);
    const left = Math.max(4, Math.min(x + 12, win.innerWidth - preview.offsetWidth - 4));
    const top = Math.max(4, Math.min(y + 12, win.innerHeight - preview.offsetHeight - 4));
    preview.style.transform = 'translate(' + left + 'px,' + top + 'px)';
    aim(doc.elementFromPoint(x, y), y);
    if (lanes.scrollLeft !== oldLeft || page?.scrollTop !== oldTop) frame = win.requestAnimationFrame(paintTouch);
  }

  root.addEventListener('pointerdown', event => {
    if (!owned(event.target) || event.button !== 0 || event.isPrimary === false) return;
    const card = event.target.closest('[data-card]');
    if (!card) return;
    const handle = event.target.closest('[data-handle]');
    suppressClick = null;
    if (event.pointerType === 'mouse') {
      if (handle) handle.draggable = true;
      card.draggable = Boolean(handle) || !event.target.closest('button, a, input, select, textarea, summary, [contenteditable]');
      return;
    }
    card.draggable = false;
    if (!handle || touch || dragged) return;
    handle.draggable = false;
    touch = {id: event.pointerId, card, handle, startX: event.clientX, startY: event.clientY, x: event.clientX, y: event.clientY};
    handle.setPointerCapture(event.pointerId);
  });
  root.addEventListener('pointermove', event => {
    if (!touch || event.pointerId !== touch.id) return;
    touch.x = event.clientX;
    touch.y = event.clientY;
    if (!dragged) {
      if (Math.hypot(touch.x - touch.startX, touch.y - touch.startY) < 6) return;
      begin(touch.card);
      suppressClick = touch.card;
      preview = doc.createElement('div');
      preview.className = 'mu-kb-drag-preview';
      preview.setAttribute('aria-hidden', 'true');
      preview.textContent = titleOf(touch.card);
      doc.body.append(preview);
    }
    event.preventDefault();
    if (!frame) frame = win.requestAnimationFrame(paintTouch);
  });
  root.addEventListener('pointerup', event => {
    if (!touch || event.pointerId !== touch.id) return;
    if (dragged) {
      aim(doc.elementFromPoint(event.clientX, event.clientY), event.clientY);
      commit();
    } else stop();
  });
  for (const type of ['pointercancel', 'lostpointercapture']) {
    root.addEventListener(type, event => { if (touch && event.pointerId === touch.id) stop(); });
  }
}
Use the HTML in a static site

Copy the rendered HTML above. Download these assets into the same folder as your page, then add the tags below to its head.

Shared CSS Component CSS Ready-to-use module

HTML head
<link rel="stylesheet" href="./base.css">
<link rel="stylesheet" href="./kanban-board.css">
<script type="module" src="./kanban-board.js"></script>

Copy into your project

Run this command from the Mono checkout. Set -out to the component directory in your application.

Terminal
go run ./cmd/mono-ui add -out ./components kanban-board
Example properties (JSON)
example.json
{
  "Columns": [
    {
      "Cards": [
        {
          "Key": "maker-interviews",
          "Label": "Editorial",
          "Owner": "Iris Tan",
          "Title": "Edit the maker interviews"
        },
        {
          "Description": "List what each visitor needs to bring to the folding session.",
          "Key": "workshop-notes",
          "Label": "Programme",
          "Owner": "Jo Leone",
          "Title": "Draft the workshop notes"
        }
      ],
      "Key": "backlog",
      "Title": "Backlog"
    },
    {
      "Cards": [
        {
          "ImageAlt": "A folded paper model casts a row of triangular shadows.",
          "ImageURL": "../components/events/form-function/paper-study.webp",
          "Key": "paper-studies",
          "Label": "Photography",
          "Owner": "Sam Okafor",
          "Title": "Photograph the paper studies"
        },
        {
          "Key": "wall-labels",
          "Label": "Print",
          "Owner": "Iris Tan",
          "Title": "Proof the wall labels"
        }
      ],
      "Current": true,
      "Key": "in-progress",
      "Title": "In progress"
    },
    {
      "Cards": [
        {
          "Key": "studio-dates",
          "Label": "Programme",
          "LinkLabel": "Open the studio calendar",
          "Owner": "Leah Chen",
          "Title": "Publish the studio dates",
          "URL": "../components/event-calendar.html"
        },
        {
          "Key": "display-plinths",
          "Label": "Fabrication",
          "Owner": "Jo Leone",
          "Title": "Build the display plinths"
        }
      ],
      "Key": "done",
      "Title": "Done"
    }
  ],
  "Period": "March 2027",
  "Subtitle": "Form \u0026 Function",
  "Title": "Studio board"
}