notification-feed component

Drop-in semantic component. See examples, sizes, variants, and source.

A scrollable feed of notification-item rows wrapped in a notification-feed container with optional header, tabs, and footer. Each item has a type modifier (message, file, alert, success) and state modifiers like unread and dismissible. Dynamic mark-as-read, dismiss, and filter behavior is powered by notification-feed.js.

Notification Feed System

A comprehensive notification system with support for different notification types, states, and interactive features like mark as read, dismiss, and action buttons.

Complete Notification Feed

Notifications 3
Mark all as read
All
Unread
Messages
Files
Sarah Chen
Sarah Chen sent you a message 2 min ago
Hey! Just wanted to follow up on our discussion about the new design system implementation...
Direct Message
James Brown shared a file with you 8 min ago
Here's the updated project documentation
Project_Documentation_v2.pdf
2.4 MB
Security Alert 1 hour ago
We noticed a new sign-in to your account from Chrome on Windows
Deployment Successful 2 hours ago
Your application has been successfully deployed to production
Version 2.1.0 Environment: Production

Compact Notification Feed

Recent Activity 2
Alex
Alex Johnson mentioned you in a comment 5m
Emma
Emma Wilson uploaded 3 files 12m
Task completed successfully 1h

Empty State

Notifications
No notifications
You're all caught up!

Notification Types & Variations

Message Notifications

User
John Doe sent you a message 5 min ago
Hey, are we still on for the meeting tomorrow?
User
Jane Smith mentioned you in a comment Just now
@you Great work on the latest feature!

File Notifications

Mike Johnson shared 3 files 2 hours ago
Design_Assets.zip
24.5 MB

Alert Notifications with Actions

Security Alert 10 min ago
New login detected from iPhone 14 Pro in San Francisco, CA
System Update Available 1 day ago
Version 2.5.0 is ready to install

Success Notifications

Export Complete Just now
Your data has been exported successfully
Report_2024.csv (2.3 MB)
Deployment Successful 15 min ago
Production deployment completed without errors
v2.1.0 3 services updated Duration: 2m 34s

Dismissible Notifications

User
Team Announcement 30 min ago
All-hands meeting scheduled for Friday at 2 PM
Reminder 2 hours ago
Your subscription will expire in 7 days

Class API Reference

Type Class Usage Notes
Base notification-feed Outer container with border, header, list, and footer slots Hosts .header, .tabs, .list, .footer
notification-item Individual notification row with avatar + content Always required on each item
list Scrollable container that holds the items Caps at max-h-96
tabs / tab Filter tab strip; mark current tab with active Optional
Sizes (default) Standard density with full descriptions No size class needed
compact Tighter rows with smaller avatar; descriptions hidden Modifier on notification-feed
Item Types message Blue avatar — direct messages, mentions Modifier on notification-item
file Purple avatar — file shares, uploads Pair with .file-preview child
alert Red avatar — security, system alerts Often paired with .actions children
success Green avatar — confirmations, completions Modifier on notification-item
States unread Blue tint background + dot indicator Removed by markAsRead
dismissible Reserves right padding for the close button Pair with a .dismiss button child
new Slide-down entrance animation Auto-applied by JS on insert
Item Children avatar-container / avatar Wrapper for the leading avatar image or icon Add .status.online for presence dot
content Main column with title, description, meta, actions Required
title / description / timestamp Standard text rows inside .content Description is hidden in compact
meta / meta-item Inline metadata row beneath the description Optional
file-preview Inline file card with name + size Use with file type
actions / action-btn Inline action buttons; primary or secondary Use with alert type
Empty / Footer empty + empty-icon + empty-title Placeholder shown when the list has no items Place inside .list
footer / footer-link Bottom action bar with a manage / view-all link Optional