Skip to content

Kanban Board with Bootstrap Cards

Bootstrap 5 kanban board with four columns, labelled task cards, drag and drop, a keyboard-friendly move menu, live counts and inline add-card forms.

Also known as: kanban board, drag and drop task board, trello style board, project management board

Kanban Board with Bootstrap Cards live demo

Open in new tab

Bootstrap 5 code (HTML, CSS, JS)

A Bootstrap 5 kanban board with To do, In progress, Review and Done columns, built from regular Bootstrap cards with colored labels, due dates, comment counts, a checklist progress bar and assignee initials. Cards can be dragged between columns or moved with a dropdown menu, and every column has its own Add card form.

How it works

The root section.kb-board contains .kb-columns, a horizontally scrolling flex row with scroll snapping and a four-column grid from 1200px. Each section.kb-column has a data-kb-column name, a modifier such as .kb-column--doing that sets --kb-col-color for its top bar and dot, a .kb-count badge, a ul.kb-list and a .kb-add button. Every task is a draggable li.kb-item holding an article.card.kb-card with .kb-label badges, a .kb-menu-btn dropdown toggle, the .kb-card__title and an optional .kb-card__meta row.

The script initialises every .kb-board on DOMContentLoaded and works through delegated listeners. On show.bs.dropdown it fills the card's .kb-menu with "Move to" items for every other column plus a Delete action. Clicking .kb-add inserts a small form with a title textarea and a label select built from the LABELS array; submitting it appends a new card, while Cancel or Escape closes it. For drag and drop, dragover finds the card under the pointer and inserts the dragged item before it, the target list gets an is-over outline, and drop updates the counts. updateCounts() keeps every badge in sync, and each time[data-kb-due] gets a real date.

Customization

  • --kb-todo, --kb-doing, --kb-review and --kb-done in .kb-board: change the color of each column's top bar and dot.
  • --kb-accent in .kb-board: sets the eyebrow text, focus outlines and the Add card button in the form.
  • --kb-column-width in .kb-board: controls column width while the board scrolls horizontally below 1200px.
  • LABELS at the top of script.js: the label options in the add form; add a matching .kb-label--yourname color rule in style.css.
  • .kb-avatar--1 to .kb-avatar--4 in style.css: background colors of the assignee initials.
  • Add another section.kb-column with a unique data-kb-column value to create a fifth column; the move menu picks it up automatically.
  • data-kb-due on a card's time element: due date as a day offset from today.
  • The submit and drop handlers in script.js: call fetch() there to save new cards and positions on your server.

Use cases

  • Product teams: tasks move across To do, In progress, Review and Done columns by dragging cards
  • Keyboard users: a move menu on every card relocates tasks without a mouse
  • Sprint planning: each column has an add card form with label choices and live card counts
  • Project dashboards: cards show labels, due dates, comment counts, checklist progress and assignee initials

Accessibility

Each column is a section labelled by its heading, and counts include a visually hidden "cards" suffix. Because dragging is mouse-only, every card has a menu button with an aria-label such as "Actions for Build checkout flow"; the Bootstrap dropdown supports arrow keys, and focus returns to the card's button after a move. The add form has hidden labels, flags an empty title with is-invalid and returns focus to the Add card button when closed. A .kb-status live region announces moves, new cards and deletions. Hover lifts and the new-card animation are disabled under prefers-reduced-motion.

Usage notes

Requires Bootstrap 5 with its JavaScript bundle and Bootstrap Icons. Several boards can share one page; all queries stay inside each .kb-board.

Kanban Board with Bootstrap Cards at a glance

Framework
Bootstrap 5
Code
HTML, CSS, JavaScript
JavaScript
Vanilla JavaScript, no jQuery
Dependencies
Bootstrap 5, Bootstrap Icons
Layout
Responsive, works on mobile
Category
Kanban Boards
License
Free for personal and commercial use

Questions about this template

Can I use the Kanban Board with Bootstrap Cards code for free?

Yes. You can copy or download the code and use it in personal and commercial projects, including client work. No sign-up is needed. Reselling it as part of a component library or template collection is not allowed; see the license.

How do I add it to my website?

Load Bootstrap 5 and Bootstrap Icons from a CDN (the links are under Requirements). Paste the HTML where the component should appear, add the CSS to your stylesheet and load the JavaScript before the closing </body> tag. Download HTML gives you a complete page with everything already linked.

Does it need jQuery or a JavaScript framework?

No. The script is plain vanilla JavaScript, so it works without jQuery, React or Vue. You can still use the markup inside those frameworks.

Does it work on mobile?

Yes. The layout adapts to small screens. Use the Mobile and Tablet buttons above the live demo to check it at phone and tablet width.

Requirements

Add these to your page (already included in the download):

  • <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css">
  • <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/js/bootstrap.bundle.min.js"></script>
  • <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.3/font/bootstrap-icons.min.css">
Kanban Board with Bootstrap Cards – Bootstrap 5 kanban boards component screenshot
Kanban Board with Bootstrap Cards · Bootstrap 5 Kanban Boards

More Kanban Boards

Kanban Task Card with Assignee Photos – Tailwind CSS kanban boards preview

Kanban Task Card with Assignee Photos

Detailed Tailwind CSS Kanban task card with labels, due date, interactive checklist progress and overlapping assignee photos.

Kanban Board with Drag and Drop – Tailwind CSS kanban boards preview

Kanban Board with Drag and Drop

Dark Tailwind CSS kanban board with three task columns, native drag and drop, keyboard move buttons, live counters and screen reader announcements.