Activity feed
A card listing recent team activity with avatars, links and relative times.
Installation
Usage
Render one <li> per event, newest first. Put the absolute timestamp in datetime and a human-friendly time ("12 minutes ago") as the text.
Accessibility
- The list is an
<ol>, so screen readers announce the number of events. - Avatars are decorative (
aria-hidden), because the person's name is in the sentence next to them. <time datetime>keeps the exact moment machine-readable.
Dependencies
- Bootstrap 5.3+ CSS.
themes/tokens/tokens.css.- The
cardcomponent. - The
avatarcomponent.
Source
The exact files the CLI installs (activity-feed@1.1.0). View on GitHub · Report an issue
html
<section class="card bootcn-card bootcn-activity" aria-labelledby="bootcn-activity-title">
<header class="bootcn-card__header">
<h2 class="bootcn-card__title" id="bootcn-activity-title">Recent activity</h2>
<p class="bootcn-card__description">What your team did in the last day.</p>
</header>
<ol class="bootcn-card__content bootcn-activity__list">
<li class="bootcn-activity__item">
<span class="bootcn-avatar bootcn-avatar--sm" aria-hidden="true"
><span class="bootcn-avatar__fallback">MP</span></span
>
<div class="bootcn-activity__body">
<p class="bootcn-activity__text">
<strong>Maria Papadopoulou</strong> merged <a href="#">Release 2.4</a>
</p>
<time class="bootcn-activity__time" datetime="2026-11-24T09:12">12 minutes ago</time>
</div>
</li>
<li class="bootcn-activity__item">
<span class="bootcn-avatar bootcn-avatar--sm" aria-hidden="true"
><span class="bootcn-avatar__fallback">NG</span></span
>
<div class="bootcn-activity__body">
<p class="bootcn-activity__text">
<strong>Nikos Georgiou</strong> commented on <a href="#">Checkout redesign</a>
</p>
<time class="bootcn-activity__time" datetime="2026-11-24T08:40">44 minutes ago</time>
</div>
</li>
<li class="bootcn-activity__item">
<span class="bootcn-avatar bootcn-avatar--sm" aria-hidden="true"
><span class="bootcn-avatar__fallback">EK</span></span
>
<div class="bootcn-activity__body">
<p class="bootcn-activity__text">
<strong>Eleni Kosta</strong> invited <a href="#">two new members</a>
</p>
<time class="bootcn-activity__time" datetime="2026-11-24T07:05">2 hours ago</time>
</div>
</li>
<li class="bootcn-activity__item">
<span class="bootcn-avatar bootcn-avatar--sm" aria-hidden="true"
><span class="bootcn-avatar__fallback">AI</span></span
>
<div class="bootcn-activity__body">
<p class="bootcn-activity__text">
<strong>Alex Ioannou</strong> closed <a href="#">Issue #182</a>
</p>
<time class="bootcn-activity__time" datetime="2026-11-23T16:30">Yesterday</time>
</div>
</li>
</ol>
<footer class="bootcn-card__footer bootcn-activity__footer">
<a href="#activity">View all activity</a>
</footer>
</section>css
.bootcn-activity__list {
display: flex;
flex-direction: column;
gap: 1rem;
margin: 0;
list-style: none;
}
.bootcn-activity__item {
display: flex;
align-items: flex-start;
gap: 0.75rem;
}
.bootcn-activity__body {
min-width: 0;
}
.bootcn-activity__text {
margin: 0;
font-size: 0.875rem;
overflow-wrap: anywhere;
}
.bootcn-activity__time {
color: var(--bs-secondary-color);
font-size: 0.8125rem;
}
.bootcn-activity__footer {
justify-content: flex-start;
font-size: 0.875rem;
}
