Skip to content

Time Group

A copy-paste notification center component in pure HTML & CSS. Zero dependencies, framework-agnostic, MIT-licensed.

Notification CenterHTMLCSSany framework
Today
Build #284 succeeded
Invitation accepted
Yesterday
3 new comments

Copy into your project

HTML
<div class="nuda-tgroup">
  <div class="nuda-tgroup__head">Today</div>
  <div class="nuda-tgroup__row">Build #284 succeeded</div>
  <div class="nuda-tgroup__row">Invitation accepted</div>
  <div class="nuda-tgroup__head">Yesterday</div>
  <div class="nuda-tgroup__row">3 new comments</div>
</div>
CSS
.nuda-tgroup {
  display: flex;
  flex-direction: column;
  gap: 2px;
  width: 100%;
  max-width: 240px;
}

.nuda-tgroup__head {
  padding: 8px 0 4px;
  color: #63636e;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-family: ui-monospace,SFMono-Regular,Menlo,monospace;
  border-bottom: 1px solid rgba(255,255,255,.06);
}

.nuda-tgroup__row {
  padding: 8px 10px;
  color: #a0a0a8;
  font-size: 12px;
  border-radius: 6px;
  cursor: pointer;
  animation: _tgrpIn .35s cubic-bezier(.16,1,.3,1) both;
  transition: background .2s,color .2s;
}

.nuda-tgroup__row:hover {
  background: rgba(255,255,255,.04);
  color: #fafafa;
}

@keyframes _tgrpIn {
  from {
    opacity: 0;
    transform: translateX(-4px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion:reduce) {
  .nuda-tgroup__row {
    animation: none;
  }
}

How to use Time Group

Paste the HTML where you need it and the CSS into a global stylesheet (or a <style> tag). Every class is prefixed nuda- so it never collides with Tailwind or your own styles. Tweak the CSS custom properties to match your design system.

Works in React, Vue, Svelte, Astro, Next.js, Nuxt, Laravel Blade, Django, Rails — or a single .html file. No npm install, no build step.

More notification center components

← Browse all NudaUI components