Skip to content

Inbox Screen with Message Filters

Mobile inbox screen with All, Unread and Groups filter tabs, search, unread badges and swipe-style archive and mute actions for a chat app conversation list.

Also known as: messaging app inbox ui, chat list screen, conversation list with unread badges, swipe to archive chat, mobile inbox html

Inbox Screen with Message Filters live demo

Open in new tab

Bootstrap 6 code (HTML, CSS, JS)

An inbox screen built with Bootstrap 6: an HTML mobile template for a messaging app conversation list with All, Unread and Groups filter tabs, live search, unread badges and swipe-style archive and mute actions. Use this chat list UI in mobile sites and PWAs, or package it with Capacitor for a messenger, team chat or community app.

How it works

The root .ibx-app is a 430 px app column with a sticky top bar (.ibx-bar), a search field built with form-adorn and form-ghost, a segmented role="tablist" (.ibx-filters) and a sticky bottom tab bar (.ibx-tabs).

  • Each .ibx-row has data-name, data-unread, data-ago (minutes ago) and data-group="true" for group chats. The script turns data-ago into a clock time, "Yesterday", a weekday or a short date without a year.
  • applyFilter() combines the active .ibx-filter tab with the search text and shows an empty state when nothing matches.
  • The .ibx-more button slides a row open (.is-open) to reveal Mute and Archive in .ibx-actions. Closed actions are inert; Escape closes an open row.
  • Mute toggles .is-muted and aria-pressed and greys the badge. Archive hides the row and shows the .ibx-snack snackbar with Undo.
  • Tapping a conversation marks it read; updateCounts() refreshes the tab counts and the Chats badge.
  • The compose button opens #ibx-compose-sheet, a Drawer used as a bottom sheet. The form validates both fields, simulates sending and adds the new chat to the top.

Customization

  • --ibx-indigo on .ibx-app in style.css: changes the active tab, unread times, badges and the Archive action.
  • --ibx-radius on .ibx-app: rounds the search field and filter control (14 px by default).
  • --ibx-reveal on .ibx-app: sets how far a row slides open; widen it for a third action.
  • data-ago on an .ibx-row: sets when the last message arrived, in minutes before now.
  • Add data-group="true" to a row to list it under Groups, or the is-muted class to start it muted.
  • Avatar classes such as .ibx-av-teal in style.css: change the initials avatar tints.
  • Replace the setTimeout in the compose submit handler with a fetch() call to your messaging API.

Use cases

  • Messaging apps: find unread chats quickly.
  • Team chat: separate group channels from direct messages.
  • Marketplace and booking apps: an inbox for buyer, seller or host messages.
  • Community apps: mute busy groups and archive old threads.

Accessibility

The filters use role="tablist" with aria-selected, roving tabindex and arrow keys, linked to a role="tabpanel" list. Row buttons have descriptive aria-label text and aria-expanded, the mute button exposes aria-pressed, and the polite role="status" snackbar announces results and actions. Touch targets are at least 44 px and the slide animation stops for prefers-reduced-motion.

Bootstrap 6 notes

Built on Bootstrap 6.0.0-alpha.1 (alpha APIs can still change). The bottom sheet is a <dialog class="drawer drawer-bottom"> instead of a Bootstrap 5 Offcanvas, buttons use btn-solid theme-primary and btn-icon, badges use badge theme-primary, and avatars use the new avatar and avatar-status classes.

Inbox Screen with Message Filters at a glance

Framework
Bootstrap 6
Code
HTML, CSS, JavaScript
JavaScript
Vanilla JavaScript, no jQuery
Dependencies
Bootstrap 6, Bootstrap Icons, fonts.googleapis.com
Layout
Mobile-first app screen, centred on wider screens
Category
Mobile Chat & Messaging
License
Free for personal and commercial use

Questions about this template

Can I use the Inbox Screen with Message Filters 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 6 and Bootstrap Icons and fonts.googleapis.com 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.

Can I turn this screen into an iOS or Android app?

Yes. It is plain HTML, CSS and JavaScript, so it works in a mobile website or progressive web app as it is. To ship it as a store app, put it in the web folder of a Capacitor or Cordova project and build it for iOS and Android; replace the sample data with calls to your own API.

How does it look on a desktop screen?

The screen is designed for phones. On wider screens it stays at phone width in the middle of the page, so it still looks like an app. The live demo opens at mobile width; use the Tablet and Desktop buttons to check other sizes.

Requirements

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

  • <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@6.0.0-alpha.1/dist/css/bootstrap.min.css">
  • <script type="module" src="https://cdn.jsdelivr.net/npm/bootstrap@6.0.0-alpha.1/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">
  • <link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap">

Built for Bootstrap 6.0.0-alpha.1. Bootstrap 6 ships as an ES module, so its script and this component's JavaScript load with type="module". Alpha releases can still change before the stable version.

Inbox Screen with Message Filters – free Bootstrap 6 mobile chat & messaging template
Inbox Screen with Message Filters · free Bootstrap 6 mobile chat & messaging template

More Mobile Chat & Messaging

AI Assistant Chat Screen – free Bootstrap 6 mobile chat & messaging template

AI Assistant Chat Screen

AI assistant chat screen for mobile apps with suggestion cards, a streaming chatbot answer typed in word by word, copy and regenerate actions and voice input.

Team Chat Channel with Threads – free Bootstrap 6 mobile chat & messaging template

Team Chat Channel with Threads

Team chat channel screen for mobile with emoji reactions, thread replies in a bottom sheet, @mention suggestions in the message composer and channel options.

Group Chat Screen with Reactions – free Pure CSS mobile chat & messaging template

Group Chat Screen with Reactions

Group chat screen for mobile apps with member avatars, sender names, emoji reactions by long press or button, reply preview with quoted messages and a composer.

Customer Support Chat Screen – free Pure CSS mobile chat & messaging template

Customer Support Chat Screen

Customer support chat screen for mobile apps with agent header, order card message, quick reply chips, star rating request, typing indicator and a message composer.

Messaging App Conversation List – free Tailwind CSS mobile chat & messaging template

Messaging App Conversation List

Messaging app chat list screen with search, unread and group filters, pinned chats, online dots, message previews, unread counts and a new chat bottom sheet.

Chat Thread with Attachments – free Bootstrap 5 mobile chat & messaging template

Chat Thread with Attachments

Mobile chat thread screen with a contact header and call buttons, message bubbles grouped by day, image and file messages, a typing indicator and a composer with an attachment sheet.