Skip to content

Compact Team List

Bootstrap 6 compact team list in a list group with small round avatars, names, roles and colored department badges, for masthead, contact and staff pages.

Also known as: compact team list html, bootstrap 6 list group with avatars, staff directory block, masthead list editorial team

Compact Team List live demo

Open in WDS Editor Open in new tab

Bootstrap 6 code (HTML)

A compact list of people for pages where a grid of cards would take too much space: a small heading and a Bootstrap 6 list group where each row shows a round avatar, a name, a role and a colored department badge. Use it for a magazine masthead, a contact page, a project team in documentation or a staff list in a CMS.

How it works

The wrapper div holds an h3 and a ul.list-group.shadow-sm, the Bootstrap 6 list group with rounded corners and hairline separators. Every row is an li.list-group-item.py-4 with one paragraph inside.

  • The paragraph is a flex row: .d-flex.flex-wrap.align-items-center.column-gap-4.row-gap-1. It keeps the avatar, name, role and badge on one line on desktop and lets them wrap neatly on phones.
  • The avatar is a 40px img.rounded-circle.
  • The name is strong, the role a span.fs-sm.fg-3.
  • The badge is .badge.badge-subtle with a theme class and .ms-auto, which pushes it to the right edge.

Customization

  • Use .list-group-flush and drop .shadow-sm for a borderless list inside a card or sidebar.
  • Replace the badges with email links, for example a link with .ms-auto.fs-sm.
  • Change badge colors with .theme-primary, .theme-success, .theme-accent, .theme-warning or .theme-info.
  • Increase the row height with .py-5 and the avatars with width="48" and height="48".
  • Add more rows by duplicating an li; the list grows without layout changes.

Accessibility

The people are a real ul, so screen readers announce the number of team members. Names are bold text, which keeps the heading outline short. Avatars carry alt text; switch to an empty alt if the name alone is enough. Department badges repeat information as text, not only through color.

Usage notes

The block contains no custom CSS and no JavaScript, only Bootstrap 6 (6.0.0-alpha.1) classes, so it can be pasted into any page, CMS field or newsletter template where the Bootstrap 6 stylesheet is loaded. It is also part of the WDS Editor snippet library: enable it with snippets: { framework: 'bootstrap6' } and insert it from the block picker, then edit every text in place.

Compact Team List at a glance

Framework
Bootstrap 6
Code
HTML
JavaScript
Only Bootstrap 6's own script
Dependencies
Bootstrap 6
Layout
Responsive, works on mobile
Category
Editor Blocks
License
Free for personal and commercial use

Questions about this template

Can I use the Compact Team List 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 from a CDN (the links are under Requirements). Paste the HTML where the component should appear. Download HTML gives you a complete page with everything already linked.

Does it need jQuery or a JavaScript framework?

No. Only Bootstrap 6's own JavaScript is used, and the download already includes it.

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@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>

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.

Compact Team List – free Bootstrap 6 editor block template
Compact Team List · free Bootstrap 6 editor block template

More Editor Blocks

Big Centered Pull Quote – free Tailwind CSS editor block template

Big Centered Pull Quote

Tailwind CSS big centered pull quote with a large quotation mark, top and bottom rules and a name with role, for customer stories, blog posts and CMS pages.

Primary, Secondary and Link Button Row – free Bootstrap 6 editor block template

Primary, Secondary and Link Button Row

Bootstrap 6 button row with a solid primary action, an outline secondary action, a text link and a reassurance line, for calls to action inside articles.

Centered Button Row with Secondary Link – free Bootstrap 5 editor block template

Centered Button Row with Secondary Link

Bootstrap 5 centered button row with a primary button, an outline button, a plain text link and a small note, for the end of articles, docs and CMS pages.