Skip to content

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.

Also known as: slack style chat ui, team messaging app template, threaded chat interface, chat channel screen mobile, workspace chat app ui

Team Chat Channel with Threads live demo

Open in new tab

Bootstrap 6 code (HTML, CSS, JS)

A team chat channel screen built with Bootstrap 6: a Slack-style mobile chat UI with emoji reactions, thread replies that open in a bottom sheet, @mention suggestions in the composer and a channel options menu. It is an HTML mobile template for mobile sites and PWAs, and it can be packaged as a native app with Capacitor.

How it works

The root .tch-app is a 430 px app column with an aubergine app bar, a pinned message strip, the .tch-feed message list and a sticky .tch-composer.

  • Times: each .tch-msg has data-ago (minutes before now) or data-day and data-hm, so clock times and "Yesterday" stay current.
  • Reactions: .tch-react buttons toggle aria-pressed and their count. The script adds a smile button to every .tch-reacts row that opens a Bootstrap 6 Menu (.tch-picker) with the emojis from EMOJIS.
  • Threads: a .tch-thread button with data-thread opens the Drawer #tch-thread-sheet (drawer-bottom). The parent message and the replies from the THREADS object are rendered inside it. A reply updates the reply count, "Last reply" time and avatar row; with "Also send to #design-review" checked it is posted to the channel too.
  • Mentions: typing @ in the composer (or tapping the @ button) opens the #tch-mentions listbox filtered from MEMBERS. Arrow keys move, Enter or Tab inserts, Escape closes. Sent messages highlight mentions with .tch-mention; text is escaped before it is inserted.
  • Channel menu: Mute toggles a bell icon, Copy link and Leave show a short .tch-snack message.

Customization

  • --tch-plum on .tch-app (with --bs-primary-bg): app bar, send buttons, thread links and checkbox color.
  • --tch-radius: the 12 px radius of avatars, cards, the composer and the sheet buttons.
  • --tch-mention-bg: the highlight behind @mentions.
  • MEMBERS and ME in script.js: names, roles, initials and avatar colors (.tch-av-1 to .tch-av-5, .tch-av-me).
  • EMOJIS in script.js: the reactions offered in the picker.
  • THREADS in script.js: sample replies; replace with data from your chat API and post new messages with fetch() in the submit handlers.

Use cases

  • Team messaging and workspace apps: channels with threads keep side discussions out of the main feed.
  • Project management tools: comment channels per project with reactions for quick approval.
  • Community and club apps: group channels with mentions to call people in.
  • Customer success portals: shared channels between a company and its clients.

Accessibility

The composer textarea is a combobox (aria-expanded, aria-controls, aria-activedescendant) for the mention listbox. Reaction buttons expose aria-pressed and a full label with the count. Thread buttons use aria-haspopup="dialog" and aria-expanded; focus moves into the reply field and returns to the thread button on close. Sends, replies and reactions are announced in a polite live region. Touch targets are 44 px and reduced motion is respected.

Bootstrap 6 notes

Built on 6.0.0-alpha.1 (alpha APIs can still change). The Bootstrap 5 Offcanvas is now <dialog class="drawer drawer-bottom">, dropdowns are data-bs-toggle="menu" with a sibling .menu, checkboxes are input.check inside .form-field, and initials use the new .avatar component.

Team Chat Channel with Threads 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 Team Chat Channel with Threads 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=Inter:wght@400;500;600;700&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.

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

More Mobile Chat & Messaging

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.

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.