Search

Search components and flows across the catalog

LumenConceptInteractive preview

Lumen: Alerts

An alerts list where the new alert arrives highlighted at the top, each row shows a sparkline with its threshold, and a row menu edits, sends a realistic test notification or deletes with undo.

Category
Notifications
Platform
Web

Interactive screenClick through it, resize it, or switch states. It’s real UI, not a screenshot.Default state

Use this screen

Free to use. It works on its own in any React and Tailwind project, so you can add it with one command, paste the code, or hand the prompt to your coding agent.

FreeReact 18+Tailwind v3.4 or v4No extra packages

1. Add it with the shadcn CLI

npx shadcn@latest add https://www.thatdesignui.com/r/screens/lumen-alerts.json

2. Use it

Every prop is optional
app/page.tsx
import LumenAlertsList from "@/components/lumen-alerts-list";

export default function Page() {
  return <LumenAlertsList />;
}

Prefer to paste it yourself? Open the .

Under the hood

How it’s built

What’s inside

  1. The Lumen app shell with Alerts active (a red count badge when something is firing), an h1 'Alerts' with a 44px indigo 'New alert' button, then three stat cards (Active, Firing now in #be123c, Sent this week), a segmented filter (All / Active / Paused / Firing with counts) and a 260px search field.
  2. A white 20px-radius list card. From 1280px each row is a grid: 36px metric icon tile, name with New / Firing (pinging red dot) / Paused badges and the rule in words, a 132x36 sparkline with a dashed threshold and red dots where it fired, overlapping channel icons, 'Last triggered' (Now / Yesterday / 3 weeks ago / Never) with the value, a 38x22 indigo switch and a 40px row menu. Below 1280px the meta wraps under the name.
  3. A new or edited alert is placed at the top with an indigo 3px left bar, a 'New' (or 'Updated') badge and a lavender highlight that fades over ~3s, plus a success toast ('Alert created … We'll notify Email and Slack') with a 'Send a test' action.
  4. The row menu (Edit / Send test / Delete) is keyboard navigable. Send test shows a toast previewing the real message for the first channel: a chat message card for Slack, a From/To/subject card for email or a dark JSON payload with '200 OK · 142 ms' for a webhook. Delete removes the row and shows an Undo toast for 6s. Edit calls onEdit or opens an inline threshold editor.

How it behaves

  • With no props it shows five demo alerts; 'Checkout error spike' is marked Firing and 'Weekly revenue milestone' is Paused.
  • Passing an alert puts it first with a New badge and shows an 'Alert created' toast that disappears by itself after about 6 seconds.
  • Turning a switch off greys the row, adds a Paused badge and updates the Active and Paused counts.
  • Send test shows a Slack-style, email or webhook preview depending on the alert's channels; Delete followed by Undo restores the row in its original position.
  • The 'empty' state shows a 'No alerts yet' illustration with 'Create your first alert', which calls onNewAlert.
  • Toasts sit above the flow dock, Escape closes the row menu and returns focus to its button, and nothing scrolls sideways at 375px.

More from Lumen

Lumen: Create an alert

Lumen: Create an alert

LumenConceptNotifications screen

Lumen: Analytics overview

Lumen: Analytics overview

LumenConceptDashboard screen

Lumen: Connect your first data source

Lumen: Connect your first data source

LumenConceptOnboarding screen